Is this a Cshap C# program ?

applying System;
applying Broker.StrategyLanguage.Operate;
namespace Service.StrategyLanguage.Strategy

court class StochasticSlow:BaseStrategyAdvisor

personal int m_length = 14;
personal double m_oversold = THIRTY;
personal double m_overbought = EIGHTY;
personal Stochastic m_stochastic1;
personal double m_value1;
personal SeriesVar m_ofastk;
personal SeriesVar m_ofastd;
personal SeriesVar m_oslowk;
personal SeriesVar m_oslowd;
personal IMarketOrder m_Order0;
personal IMarketOrder m_Order1;
court StochasticSlow(object ctx):
base(ctx)
Input
court int length
find return m_length;
collection m_length = worth;

Input
court double oversold
find return m_oversold;
collection m_oversold = worth;

Input
court double overbought
find return m_overbought;
collection m_overbought = worth;

guarded override void Construct()
m_stochastic1 = innovative Stochastic(this);
m_ofastk = innovative SeriesVar(this);
m_ofastd = innovative SeriesVar(this);
m_oslowk = innovative SeriesVar(this);
m_oslowd = innovative SeriesVar(this);
m_Order0 =
OrdersFactory.CreateMarketNextBar(new OrdersCreateParams(Lots.Default, “StochLE”, OrderAction.Buy));
m_Order1 =
OrdersFactory.CreateMarketNextBar(new OrdersCreateParams(Lots.Default, “StochSE”, OrderAction.SellShort));

guarded override void Initialize()
m_stochastic1.priceh = Pubs.High;
m_stochastic1.pricel = Pubs.Low;
m_stochastic1.pricec = Pubs.Close;
m_stochastic1.stochlength = innovative SeriesExpression(delegate go back length; );
m_stochastic1.length1 = innovative ConstantExpression(3);
m_stochastic1.length2 = innovative ConstantExpression(3);
m_stochastic1.smoothingtype = innovative ConstantExpression(1);
m_stochastic1.ofastk = m_ofastk;
m_stochastic1.ofastd = m_ofastd;
m_stochastic1.oslowk = m_oslowk;
m_stochastic1.oslowd = m_oslowd;
m_value1 = default(double);
m_ofastk.DefaultValue = 0;
m_ofastd.DefaultValue = 0;
m_oslowk.DefaultValue = 0;
m_oslowd.DefaultValue = 0;

guarded override void Destroy()
guarded override void Execute()
m_value1 = m_stochastic10;
in case (((Functions.DoubleGreater(Bars.CurrentB 2) && Performs.CrossesOver(this, m_oslowk, m_oslowd))
&& Performs.DoubleLess(m_oslowk.Valuation, oversold)))
m_Order0.Generate();

in case (((Functions.DoubleGreater(Bars.CurrentB 2) && Performs.CrossesUnder(this, m_oslowk, m_oslowd))
&& Performs.DoubleGreater(m_oslowk.Valuation, overbought)))
m_Order1.Generate();

Yes it is a C# program

Using is a keyword which will come in Csharp
Coffee uses signific, C as well as C++ functions include

Strategy is a namespace
Your System namespace is made up of fundamental courses and base classes this define commonly-used value and reference data sorts, events as well as event handlers, interfaces, attributes, and control exceptions.

Bless you, Hope the idea helps

No, probably not sure exactly what your’re looking to create at this time there, but that will wouldn’t possibly compile.

Leave a Reply