protected override void OnBarUpdate()
{...
double sma1 = SMA(Close, periodMovingAverage)[1];
double sma0 = SMA(Close, periodMovingAverage)[0];
...
bool HigherSMA = false;
...
if(sma0 > sma1)
HigherSMA = true;
...
If(HigherSMA)
{EnterLongLimit(...)}
Any ideas why NT enters a LONG trade when the condition is visibly not met? I have confirmed the action by manually observing the SMA values in the data box. SMA is definitely going down, not up.
Thanks for your feedback,
D

Comment