My position trades on x min bars, but I want to exit on Ticks. Right now, it waits until the end of the bar to close out the position IF the bar's close meets the exit criteria.
I set the CalculateOnBarClose = false; but that did not seem to do it.
The other question is about MinimumBars. So let's say I have it set to 10. When I run the backtest, it waits 10 bars. However, my startegy closes out at 4PM and starts trading again at 6PM. However when it starts trading again at 6PM, it doesn't wait anymore the 10 bars before going in, it trades immediately b/c it considers the bars before it as part of the required 10 bars. How do I set it so that every time it does "SessionBegins" it resets the amount of bars required that is has seen and will then have to wait for the 10 bars again.
Thanks for helping out a NT Scripting newbie!!
Comment