Multi-timeframe indicator/strategy

Questions about MultiCharts .NET and user contributed studies.
holya
Posts: 40
Joined: 28 Aug 2012
Location: Vancouver, Canada
Has thanked: 8 times
Been thanked: 1 time

Multi-timeframe indicator/strategy

Postby holya » 11 Aug 2015

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.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Multi-timeframe indicator/strategy

Postby Henry MultiСharts » 11 Aug 2015

Hello Hamid,

DataLoader is not designed for Data Playback.

holya
Posts: 40
Joined: 28 Aug 2012
Location: Vancouver, Canada
Has thanked: 8 times
Been thanked: 1 time

Re: Multi-timeframe indicator/strategy

Postby holya » 16 Aug 2015

Thank you Henry, I realize that obviously, but I am looking for suggestion as to how to accomplish this. Any thoughts?

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Multi-timeframe indicator/strategy

Postby Henry MultiСharts » 18 Aug 2015

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.


Return to “MultiCharts .NET”