My script uses action based entries, (i.e. if current bid/ask > Benchmark+4ticks ; Enter long) and uses the same process for stop loss orders. (Benchmark //Open price of the 8:30AM 30minute bar)
The problem I am experiencing is during a back-test, the strategy will exit its current position and will cease to place new orders when the current bar closes. it needs to continue its position through the day always referencing the Benchmark price until it reaches its profit target or stop loss
I run the same exact script in a playback simulation and it preforms correctly. The only difference I made to adjust the script from a back-test version to a play-back version was to disable State == State.Historical and make IncludeTradeHistoryInBacktest = false.

Comment