Single Alert within One Bar
Kindly help, I have been stcucked for one month plus.
chuale:
If you want the Comment to update every tick, then insert it after the Comment code and before the alert code.
Hi,
I have the coding above to alert me when M5>3 or <-3, the problem is i received many alerts within a single bar. So where shall I insert the following coding to receive only one alert for a bar if condtioton met?
if(Time[0]==PreviousTime) return(0); //EA will not go past this point unless it is a new bar
PreviousTime=Time[0];
Hi,
I have the coding above to alert me when M5>3 or <-3, the problem is i received many alerts within a single bar. So where shall I insert the following coding to receive only one alert for a bar if condtioton met?
if(Time[0]==PreviousTime) return(0); //EA will not go past this point unless it is a new bar
PreviousTime=Time[0];