Alert request

 

Hello,

How can I add an Alert for an indicator ?

Example - I want to receive an email once the Stochastic has reached a certain threshold. (eg: 80 or 20)


Dan

 
Dan Moldovan:

Hello,

How can I add an Alert for an indicator ?

Example - I want to receive an email once the Stochastic has reached a certain threshold. (eg: 80 or 20)


Dan

First you need to have a minimum understanding of the MQL5 language.

Then, over the indicator of your choice, read the code and add the SendMail() function wherever you think it is appropriate.

Do not forget to enable the Notifications on your MT5 terminal (TOOLS > OPTIONS > NOTIFICATIONS).


;)

Documentation on MQL5: Common Functions / SendMail
Documentation on MQL5: Common Functions / SendMail
  • www.mql5.com
Common Functions / SendMail - Reference on algorithmic/automated trading language for MetaTrader 5
 
Minions Labs:

First you need to have a minimum understanding of the MQL5 language.

Then, over the indicator of your choice, read the code and add the SendMail() function wherever you think it is appropriate.

Do not forget to enable the Notifications on your MT5 terminal (TOOLS > OPTIONS > NOTIFICATIONS).


;)

Is this also possible with if I am using MT4 ?

 
Dan Moldovan:

Is this also possible with if I am using MT4 ?

Sure! Sorry. Here it is:

;)

SendMail - Common Functions - MQL4 Reference
SendMail - Common Functions - MQL4 Reference
  • docs.mql4.com
SendMail - Common Functions - MQL4 Reference
 
Minions Labs:

Sure! Sorry. Here it is:

;)

thanks.

I'll look into it

Reason: