Download MetaTrader 5

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

To add comments, please log in or register
superblacksmith
9
superblacksmith  

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
      
      
   }


 

whroeder1
15925
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.
superblacksmith
9
superblacksmith  
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.
To add comments, please log in or register