I'm in the process of developing a multi time frame indicator. The primary series are renko bars (say 6 ticks), while I need few more (might be up to 8) bar series based on minutes mainly.
The first problem with renko and, say, 1 minute bars is once I apply both dataseries to chart, renko chart is very far left, while minute chart is very far right and renko has big gaps (I apply 2nd series into a separate panel, not same). I don't really care too much about this one as I only need minute bar values from 0 and 1 bar.
The main problem is, it doesn't allow me to access secondary data series at all:
"Error on calling 'OnBarUpdate' method for indicator 'testindicator' on bar 0: You are accessing an index with a value that is invalid since its out of range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart."
I load 40 days on my main series and it flips even when I'm accessing 1 minute data. I access just price data (Highs[x][0], Lows[x][0] and so on), none other indicators are involved.
Any ideas where I might look for mistakes?
Thank you in advance.
Comment