bilbao wrote: Fri Jan 31, 2020 6:57 am Find the last line starting with extern (older MT4 indicators) or input (MT5 and newer MT4 indicators) statement.
Insert the following code after that line:
input int TriggerCandle = 1;
input bool EnableNativeAlerts = true;
input bool EnableSoundAlerts = true;
input bool EnableEmailAlerts = true;
input bool EnablePushAlerts = true;
input string AlertEmailSubject = "";
input string AlertText = "";
input string SoundFileName = "alert.wav";
datetime LastAlertTime = D'01.01.1970';
int LastAlertDirection = 0;
This code uses empty initial alert text and email subject. They will be filled during alert evaluation.
Hi, I did as you said but I couldn't, can you check what I did wrong? Thank you