Custom indicator not working on the latest MT4 update (Build 1031)

 

I have an issue on my custom indicator. It was working fine in the previous version but on this latest release, it does not print on the chart anymore. I have to use it on the older version of MT4. 

Anyone knows how to fix this?

 

//standard initialisations above here

int start()
{
   for(int i=Bars-IndicatorCounted(); i>0; i--)
   {
      //my codes here
      
      
   }


 

 
  1. If IndicatorCounted is zero, variable i is Bars and any predefined array indexed by Bars does not exist. Array exceeded - indicator crashes.
  2. Fix your broken indicator. How to do your lookbacks correctly.
 
whroeder1:
  1. If IndicatorCounted is zero, variable i is Bars and any predefined array indexed by Bars does not exist. Array exceeded - indicator crashes.
  2. Fix your broken indicator. How to do your lookbacks correctly.
Thank you.
Reason: