Stop alerts till value changes

 
I'm building a tool based on Alerts and the problem is that's continuously repeating alerts in loop, just need to know if there's a way to keep them stopped till change their values.
 
David Diez :
I'm building a tool based on Alerts and the problem is that's continuously repeating alerts in loop , just need to know if there's a way to keep them stopped till change their values .

Use the Alerts counter inside your program.

 
David Diez :
I'm building a tool based on Alerts and the problem is that's continuously repeating alerts in loop , just need to know if there's a way to keep them stopped till change their values .

Example: Simple Signalman

The idea of a utility adviser

When you open a position, the EA plays the specified sound ( Sound Name ), the specified number of times ( Repetitions ) with the specified pause ( Pause ).

One of the methods of application: put pending orders and do your own thing. As soon as one of the pending orders triggers, a sound will be played. If the position is closed, the sound will be played.

How events are caught: through the OnTradeTransaction function, we expect a transaction with the type TRADE_TRANSACTION_DEAL_ADD (adding a transaction to the history). Additionally, check that it was a deal or BUY or SELL. In the given Expert Advisor, OnTradeTransaction contains redundant code - but this can be used to expand the advisor's functionality - since all the necessary data has already been received and prepared.

 
David Diez continuously repeating alerts in loop,
You are looking at a signal. Act on a change of signal.
          MQL4 (in Strategy Tester) - double testing of entry conditions - Strategy Tester - Expert Advisors and Automated Trading - MQL5 programming forum #1
 
Vladimir Karputov:

Use the Alerts counter inside your program.

Didn't find a way in the MQL reference.

https://www.mql5.com/es/docs/common/alert

Documentación para MQL5: Funciones comunes / Alert
Documentación para MQL5: Funciones comunes / Alert
  • www.mql5.com
[in]  Cualquieres valores separados por comas. Para separar la información mostrada en varias líneas se puede usar el símbolo de avance de líneas "\n" o "\r\n". El número de parámetros no puede superar 64. No se puede pasar los arrays a la función Alert(). Los arrays deben visualizarse elemento por elemento. Los datos del tipo double se...
 
David Diez:

Didn't find a way in the MQL reference.

https://www.mql5.com/es/docs/common/alert

Forum on trading, automated trading systems and testing trading strategies

Stop alerts till value changes

Vladimir Karputov, 2019.10.15 06:07

Example: Simple Signalman

The idea of a utility adviser

When you open a position, the EA plays the specified sound ( Sound Name ), the specified number of times ( Repetitions ) with the specified pause ( Pause ).

One of the methods of application: put pending orders and do your own thing. As soon as one of the pending orders triggers, a sound will be played. If the position is closed, the sound will be played.

How events are caught: through the OnTradeTransaction function, we expect a transaction with the type TRADE_TRANSACTION_DEAL_ADD (adding a transaction to the history). Additionally, check that it was a deal or BUY or SELL. In the given Expert Advisor, OnTradeTransaction contains redundant code - but this can be used to expand the advisor's functionality - since all the necessary data has already been received and prepared.


 
David Diez:

Didn't find a way in the MQL reference.

https://www.mql5.com/es/docs/common/alert

Hello,

can to take a look in source code of iFollowLine or iCompass to see how can to do that you ask.

Best Regards.

Reason: