I'm having a quite bizarre problem when trying to load an indicator on my charts, it's a 250 period 1 minute Moving Average loaded on a UniRenko chart and sometimes I cannot get it loaded and a log message appears saying that the index is out of range. I allow plenty of bars to load before the indicator starts calculating 1 minute bars, but here is when it gets weird, when I load a chart of 22 days for instance, which has more than enough for the indicator to calculate, it will not load. Then when I decrease the days to 11, the indicator will show up normally. The "OnBarUpdate" starts with if(CurrentBar < 300) return;
Sometimes it will only load on specific days like 11 days or 5 days but not on 20 or 22 days of data loaded. How bizarre is that?
it's not a big issue really but its quite annoying to keep trying to find the right amount of days the indicator will feel like loading every time I open the chart.
Does anyone have a clue on how to fix this?
Thanks!
Comment