Hourly alert indicator or script

 

Hello,

Does anyone know/have an indicator or script that just alerts when the hourly candle closes?

It does not matter if it is a bull candle or bear candle - it is just a way to remind (within MT4) that the hourly candle has closed.

This probably already exists (or is simple to develop), so I ask if someone has it.

Thanks.

M.

 
int start(){
 static datetime t=0;
 if(t!=iTime(Symbol(),PERIOD_H1,0)){
  t=iTime(Symbol(),PERIOD_H1,0);
  Alert("Candle Closed");
 }
}
 
zzuegg:


Thanks a lot Zzuegg!

I tried it, and it seems to be working correctly.

Future will tell, but I think you just gave me an excellent tool that will help my discipline.

M.