I am writing an indicator which uses multiple timeframe from yearly down to minute bars.
Now, if I want to back-test or use the backward/forward buttons on the chart the bars will be pushed to the CalcBar method, as oppose to a more intuitive way through DataLoader object where I download historical data.
I use the lowest timeframe to house my indicator therefore when I get a new five minute bar, for example, I have to normalize higher timeframe indicators such as hourly, daily, weekly. It is becoming a bit frustrating that I have to do all these manually as oppose to just ask the Mc to feed me the right data for any timeframe.
Any help would be much appreciated.
Hamid.
Multi-timeframe indicator/strategy
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Multi-timeframe indicator/strategy
Hello Hamid,
In order to use multiple data series in the Playback you need to add the required data series to your chart and reference it from the code, instead of using the DataLoader.
In order to use multiple data series in the Playback you need to add the required data series to your chart and reference it from the code, instead of using the DataLoader.