Download MetaTrader 5

Maximum iterations please help

To add comments, please log in or register
ndivho20
55
ndivho20  

Hello

I have an indicator that sends me push notifications every time I get an X amount of consecutive low/high bars. The problem with the indicator is that it keeps sending me notifications for every tick after the alert condition has been met. Could someone please help me change it so that I only receive one notification per candle.

Thanks in advance.

whroeder1
17063
whroeder1  
ndivho20: I have an indicator that sends me push notifications every time I get an X amount of consecutive low/high bars. The problem with the indicator is that it keeps sending me notifications for every tick after the alert condition has been met.
      if (IsConsecutiveHighBars(ConsecutiveHLbars,i)) {
You are looking at a signal. You can alert on a change of signal.
          Too many orders - MQL4 and MetaTrader 4 - MQL4 programming forum
ndivho20
55
ndivho20  
whroeder1:
You are looking at a signal. You can alert on a change of signal.
          Too many orders - MQL4 and MetaTrader 4 - MQL4 programming forum
I do not understand what you mean. I just need me to alert me once per candle.
whroeder1
17063
whroeder1  
ndivho20: . I just need me to alert me once per candle.

Then code that.

To add comments, please log in or register