Every Hours Enter post

 
Hello. Im new here. i want to know the coding for ea.

the requirement is the order will enter for every hours 24 time a day.can anyone help me?thanks in advance
 
hello..anyone here...
 

You could use the 1 hour chart and put this at the beginning of your start() function:
if(Volume[0]>1) return;

 
joetrader:

You could use the 1 hour chart and put this at the beginning of your start() function:
if(Volume[0]>1) return;


my coding that i want is not related with timeframe sir.
 

Do I understand correctly that you want your EA to check once an hour every hour for an open?

 
joetrader:

Do I understand correctly that you want your EA to check once an hour every hour for an open?


not checking but enter post every hours. example like this

on 00:00, post BUY will enter

on 01:00 Post buy will enter

on 02:00 post buy will enter

and every hours will be like that sir.
 
Bring Up My post...
 

The solution above will do that if you use the one hour chart because it will trade only the first tick of every new candle. If you use the one hour chart, it will automatically chart one hour candles.

void start()
  {
   //---- go trading only for first tick of new bar
   if(Volume[0]>1) return;
   int ticket=OrderSend(...);
  }
Otherwise, you could use this on any chart:
void start()
  {
   //---- go trading only for first tick of new bar
   if( iVolume(Symbol(), Period_H1,0)>1); return
   int ticket=OrderSend(...);
  }
Reason: