I am developing multiframe indicator that uses a lot of time frames – from ticks to yearly bars.
I only need 100 bars for each frame for calculations (yearly sequence can be shorter, of course).
My problem is, when I add all the timeframes, indicator becomes extremely slow. At the same time, if it runs on 15 min chart or below, Daily, Weekly and above history is too short.
I suppose it may have to do with Bars to Load property of the chart. How can I set it programmatically for the indicator?
Generally speaking, I’d like to request 100 bars (and no more, not to cause sluggishness) for each time frame.
Thank you for your terrific platform.
Comment