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];
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
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];