You have to add the external bool parameters to let the user decide what to enable -> you have already done:
so you have add the options to your code,
change this:
to:
for the SELL-block you have to do the same, ...
Inserted Code
extern bool Alerts = TRUE; extern bool PushAlerts = TRUE; extern bool EmailAlerts = TRUE; extern bool SoundAlerts = TRUE;
so you have add the options to your code,
change this:
Inserted Code
Alert(Symbol(), " ", Period(), "BUY"); SendNotification(Symbol() + "BUY"); PlaySound(SoundFileUp); SendMail(Symbol() , "BUY");
Inserted Code
if (Alerts) Alert(Symbol(), " ", Period(), "BUY"); if (PushAlerts) SendNotification(Symbol() + "BUY"); if (SoundAlerts) PlaySound(SoundFileUp); if (EmailAlerts) SendMail(Symbol() , "BUY");
PM me with coding requests and I'll probably put you on my ignore list