Trading Times Filter with Minute...

 

Hi,

I use this code as Trading Times filter . But I need to add Minute section like 09:15 ...

Any suggestion ?

 ------------------------------------

extern bool UseHourTrade = True;
extern int  FromHourTrade = 9;
extern int  ToHourTrade = 11;

 

 if (UseHourTrade){
   if((Hour()>=FromHourTrade)&&(Hour()<=ToHourTrade))
      Comment("Trading Hours");
   else
     {
      Comment("Non-trading Hours");
      return(0);
     }
   }

 

Thanks Ubzen

I solved my problem :) 

 
See my code