How to set Notification in MQL4 to ring only one time? Now I receive notific 100 times per minute!
Kostadin Yankov: How to set Notification to ring only one time? Now I receive notific 100 times per minute!
Fix your EA to only send notifications according to your requirements.
Hi
The EA is mine , but send so much rings . I miss simething !
You have to use Time or Bar to stop repeat ringing
you can learn more from this example in mql5 and attempt to write in mql4:
#property copyright "Copyright 2022" #property link "https://www.mql5.com/" #property version "1.00" #property indicator_chart_window //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int OnInit() { //--- indicator buffers mapping //--- return(INIT_SUCCEEDED); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int OnCalculate(const int rates_total, const int prev_calculated, const datetime &time[], const double &open[], const double &high[], const double &low[], const double &close[], const long &tick_volume[], const long &volume[], const int &spread[]) { //--- ArraySetAsSeries(time,true); //Print(time[0]); static datetime pastime = time[0]; if(pastime!=time[0]) { // Add your code for Send Notification which will trigger only once when a new bar occurs pastime=time[0]; } //--- return value of prev_calculated for next call return(rates_total); }
Arpit T #: You have to use Time or Bar to stop repeat ringing
Or Act on a change of signal.
Too many orders - MQL4 programming forum #1 (2017)
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register