- Modifying a Position - Trade - MetaTrader 5 for iPhone
- Compare
- Modifying a Position - Trade - MetaTrader 5 for Android
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.
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.
MQL4 (in Strategy Tester) - double testing of entry conditions - Strategy Tester - Expert Advisors and Automated Trading - MQL5 programming forum #1
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](https://c.mql5.com/36/29/documentaci-n-para-mql5-funciones.png)
- www.mql5.com
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.
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.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use