I'm working on a 'crossover' strategy and want to test how it behaves when the signals are generated based on:
1. minute data ( that is when the crossover occurs based on realtime/tick data, the strategy waits until the close of the minute bar and enters on the open of the next bar)
2. tick data ( that is when the crossover occurs based on realtime/tick data, the strategy immediately enters long or short.
I believe in order for me to test this, I will have to play around with ''CalculateOnBarClose." My understanding of this variable is that when it is set to false, the strategy uses tick data. When it is set to true, it waits for the close of the bar.
When this variable is set to true, how do I select which closing bar to use? For example: if it is true, how do I tell it to use the close of ''X'' minute bar.
Another thing that is confusing to me is that, after I have set the CalculateOnBarClose to true/false, and now I am about to do backtesting, there is a option for me to edit "data series" and select if I want to use minute, tick or hour. How is that going to affect my CalculateOnBarClose variable? ie if I have the CalculateOnBarClose variable set to false, but my data series in my backtesting is based on minute data, will CalculateOnBarClose variable override the backtesting data series and use tick data instead? Same thing for when testing the strategy in simulation mode. It gives the same option to select which data series to use. This is causing me a confusion as well.
I would appreciate it if you can give me the variables that I need to set for the above two scenarios mentioned in your reply and an explanation.
Thank you very much.


Comment