Time filter code for mq5

 

             I have a pretty good EA (mq5 ).Now I need the Time filter.Where can I find the code for the Time filter (mq5) or a sample EA with the Time filter code in it so I can do it myself ? 

             Please help ( not by the Wizard ).Thank you.

 

Please check this EA, I already put the time filter.

Files:
 
      I already put your code into my EA,it compiled OK. I don't know if it works or not until the market opens but thanks anyway Biantoro.
 
             I put the code from Check Time.mq5 ,it compiled OK but now it does not open any trade;it used to open trade.Does anybody have any idea why ?
 
Biantoro Kunarto:

Please check this EA, I already put the time filter.

Thank you!

It worked perfectly for me!

 
Biantoro Kunarto:

Please check this EA, I already put the time filter.

What if i want to use 04:30 as a start time?

is that right? :


input double               StartHour            = 4.5;