my indicator does not update every tick , like moving average indicator

 

hello every one, I devised indicator that updated every tick but recently it stopped updated every tick , it is mql4, please help resolve this problem.

Files:
ma.mq4  8 kb
 
  1. Why did you post your MT4 question in the MT5 General section instead of the MQL4 section, (bottom of the Root page)?
              General rules and best pratices of the Forum. - General - MQL5 programming forum? (2017)
    Next time, post in the correct place. The moderators will likely move this thread there soon.

  2.       for(int i=0 ;i<=Bars; i++){ 
      ⋮  
       ExtMapBuffer1[i]=m1;

    When i equals Bars, you access the nonexistent element.

  3. Kawther Abdullal Mahdi Homozi: k but recently it stopped updated every tick ,

    Prove it; add a print at the top of start and look at the log.

 
Your topic has been moved to the section: MQL4 and MetaTrader 4
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
 
William Roeder #:
  1. Why did you post your MT4 question in the MT5 General section instead of the MQL4 section, (bottom of the Root page)?
              General rules and best pratices of the Forum. - General - MQL5 programming forum? (2017)
    Next time, post in the correct place. The moderators will likely move this thread there soon.

  2. When i equals Bars, you access the nonexistent element.

  3. Prove it; add a print at the top of start and look at the log.

first I am sorry that I posted in wrong forum , then I already addid Alert in top of start() and nothing alerted it just draw indicator lines in inicial mode.