Hi
My expert shows the name of symbol when ADX intersection as alert.
I would like to receive for every symbol just one time per day not more.
I have written an expert and I receive a lot of alerts continuously per second for every symbol. I want to put a condition to check if the symbol showed once do not alert it until I reopen my mql
thanks for your attention
You need to declare a variable of the 'datetime' type at the global program level (in the expert header) - as soon as a signal appears, you write the opening time of bar # 0 from the D1 timeframe to this variable.
If a new signal appears - you compare the time in the variable and the opening time of bar # 0 from the D1 timeframe.
Example in code ADX Extremum Alert
- www.mql5.com
You need to declare a variable of the 'datetime' type at the global program level (in the expert header) - as soon as a signal appears, you write the opening time of bar # 0 from the D1 timeframe to this variable.
If a new signal appears - you compare the time in the variable and the opening time of bar # 0 from the D1 timeframe.
Example in code ADX Extremum Alert
Thanks a lot ***
Communicate culturally. Next time I'll send it to the ban.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi
My expert shows the name of symbol when ADX intersection as alert.
I would like to receive for every symbol just one time per day not more.
I have written an expert and I receive a lot of alerts continuously per second for every symbol. I want to put a condition to check if the symbol showed once do not alert it until I reopen my mql
thanks for your attention