I have a very big problem with the backtesting tool.
I have developed a strategy which is basically doing this:
only buy long if sma1 > sma2
only buy short if sma1 < sma2
if (SMA(25)[0] > SMA(50)[0]
&& Stochastics(3, 5, 2).D[0] < 55
&& Stochastics(3, 5, 2).K[1] < 30 || Stochastics(3, 5, 2).K[2] < 30)
{
EnterLong;
}
but the strategy is still doing short orders when the short sma (turquoise) is on top of the longer sma (orange).
please see attached screenshot.
on this screenshot you will notice the second problem I have - see that long entry at 9550 at 19:39 in the middle of the screen? price has not touched this entry but the entry marker is there. Include commission is set to false.
I am using latest ninja trader Version (6.5.1000.12)

Comment