The strategy is set to
CalculateOnBarClose = false;
but seems to be entering trades on the bar AFTER the trigger is tripped. In other words, the order is not entered until the 'trigger' bar is closed.
Are there more requirements other than specifying
CalculateOnBarClose = false;?
-------------------------------------------------------------------
Also, in tickxtick mode (vs. OnBarClose mode) if I want to enter a trade when the Last price is higher than the prior bar high, is there a difference between these 2 snippets?:
A) if(Close[0] > High[1])
-----EnterLong...
B) if(High[0] > High[1])
-----EnterLong...
----------------------------------------------------------
One last potential cause---are orders submitted differently (at different times) under
CalculateOnBarClose = false;
vs.
CalculateOnBarClose = true;?
Comment