Alert on indicator

 

hey, how to add alert on condition of indicators?

thanks for response 

 
rockymount932:

hey, how to add alert on condition of indicators?

thanks for response 

I use void function to create an alert 

Example

//--

input yes_or_no Enable_Alerts= Yes;

void Alert()

{

double Something=_____

double Something1=_____


if(Something>Something1&&Enable_Alerts==Yes)

{

Alert("BUY NOW");

}

}

Documentation on MQL5: Constants, Enumerations and Structures / Named Constants / Predefined Macro Substitutions
Documentation on MQL5: Constants, Enumerations and Structures / Named Constants / Predefined Macro Substitutions
  • www.mql5.com
//| Expert initialization function                                   | //| Expert deinitialization function                                 | //| Expert tick function                                             | //| test1                                                            |...
 
I will try, thanks!