Sadi / Publications
Forum
Bars variable returning 0
My indicator draws rectangles that go from the beginning of the chart to the end. To do that, I use the Bars pre-defined variable https://docs.mql4.com/predefined/bars Since I only need that done once, it is in the OnInit() function of the indicator. Everything works fine, but sometimes (not