sending notification

 

Hi everyone

I'm using crossover strategy and sendnotification() function.

after crossing MAs , for 60 seconds(in every Tick in Bar[0]) it sends notification.

How can I limit it to only once ?

I used NewBar function but it doesn't work at all.

Please help if you know.

Documentation on MQL5: Network Functions / SendNotification
Documentation on MQL5: Network Functions / SendNotification
  • www.mql5.com
SendNotification - Network Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 
saeed Golshenas: How can I limit it to only once ?

You are looking at a signal. Act on a change of signal.
          Too many orders - MQL4 programming forum #1 (2017)