I’ve been reading and studying some examples and have some questions, especially about IntrabarBacktest.
I write down my assumptions and hope to hear if they are correct.
I want to test a simple MA cross Strategy on a daily chart for this example. But I don’t want to see how it performs when the day is over but during the day.
** Real Time datafeed**
- I set CalculateOnBarClose = false
- I have a daily chart with a 2 MA’s cross Strategy
- On every incoming tick OnBarUpdate is called, right?
- If after some tick my MA’s cross on the Daily the Strategy triggers during the day because CalculateOnBarClose=false right?
- So when looking at my Strategy in real time I can look at intrabar behavior this way?
** Backtesting Strategy**
- If I have only Daily data, the OnBarupdate is triggered on every Daily bar in the data, right?
- If I want to backtest how watching only a daily chart my strategy works during the day I have to add a smaller dataseries, right?
- So if I read the SampleIntraBarBacktest I have to look at the smaller time frame with BarsInProgress == 1, right? The sample uses ==0 but I want to see on the smaller time frame what happens on the lager.
- If the secundairy series is 60 min data then every 60 min OnBarUpdate is called, right?
- I then can check is the MA’s on the daily timeframe/bars have crosses and execute an order on the secundairy timeframe. Do you have to execute on the secundairy?
I hope i explained my situation and questions good enough.
Comment