EA Timer regulation

 

Hello guys, i have a problem. In fact i created and ea that's supposed to analyse previous candles(starting from rates[1]) and send a signal(push notification) but i want the ea to send the signal once and wait for the candle to close before trying to send one more time not on each tick movement of the actual candle.

Thanks for the help.

 
brynxxx: i want the ea to  wait for the candle to close before trying to send one more time not on each tick movement of the actual candle.
  1. So code it to do that.

    For a new bar test, Bars is unreliable (a refresh/reconnect can change number of bars on chart,) volume is unreliable (miss ticks,) Price is unreliable (duplicate prices and The == operand. - MQL4 programming forum.) Always use time.
              New candle - MQL4 programming forum #3 2014.04.04

    I disagree with making a new bar function, because it can only be called once per tick. A variable can be tested multiple times.

  2. The timer is irrevalent.
 

thank you. i just didn't know how i could properly describe the problem that's why i said timer regulation