Cubesteak Central

3 Fold Trading Hours

August 23, 2006 1:17 am

A forex-tsd buddy was working on a project that needed to filter trading by 3 separate timeframes.  Answering his question prompted me to make this little indicator that displays a comment telling you if it is currently within your preset trading hours.

The hours to trade can be set either in the code directly, or through the indicator settings window.  Of course, all hours are in relation to your broker’s server.

Current limitation: it only works on whole hours, no minutes.

Possible future: I can make it work with objects, rather than a comment, giving more flexibility on placement and opening up the possibility of putting it in a separate indicator window.  Let me know if that would be usefull! 

MetaQuotes 4 Language File 3FoldTradingHours.mq4
3FoldTradingHours.zip

4 Responses to “3 Fold Trading Hours”

Barry Vincent wrote a comment on August 25, 2006

I would like to have it in a indicartor window.
Barry

[...] In a previous post, I made available a small indicator that simply mentioned if you should be trading or not based on three different configurable timeframes. [...]

cubesteak wrote a comment on October 28, 2006

Hi Barry, OK, I’ll put it together for you!

Cheers,

CS

[...] Original: Visual reminder via a chart comment New: Visual reminder via a new indicator window (available below) Also: Time filter for an Expert Adviser to actually stop trading from happening [...]

Care to comment?