Alert when price close

 

Hi

I just want to an alert or sound appears when the candle has closed.

Could someone help me to get the code please?

I'm really newbien and I don't know a lot about mql.

Thanks !

 
int start(){    static datetime Time0;  bool new.bar = Time0 < Time[0];
   if (new.bar){                                       Time0 = Time[0];
      Alert(...
 

here you can have mine - i just made to use with a manual strategy I'm testing. You can edit the Alert, mines look like that because I'm testing with Renko Charts.

 

//+------------------------------------------------+
//|Manual_Alert.mq4
//|Ubzen
//|Ubzen2@gmail.com
//+------------------------------------------------+
//+------------------------------------------------+
int start(){
//+------------------------------------------------+
//+------------------------------------------------+
static datetime Bar_Open;
if(Bar_Open != Time[0]){
Alert("Price Moved 10 Points");
Bar_Open=Time[0];}
//+------------------------------------------------+
//+------------------------------------------------+
return(0);}
 
thank you so much for your help :D I could make the alert works successfuly :)
Reason: