I would like my EA to open buy orders only within a certain time period such as 1900 to 2100 hrs.
What is the code to do that?
What is the code to do that?
How to specify to EA not to open new trades after London close 2 replies
Is there a Period Separator Indicator where I can Specify Start and End Time? 2 replies
How do I specify OrderopenPrice for two separate pairs? 2 replies
Chart of Trading Hours & Related Volume 1 reply
FXSol Holiday Trading Hours 7 replies
bool CheckTradingTime() { if(StartHour < EndHour && TimeHour(TimeCurrent()) < StartHour || TimeHour(TimeCurrent()) >= EndHour) return(false); if(StartHour > EndHour && TimeHour(TimeCurrent()) < StartHour && TimeHour(TimeCurrent()) >= EndHour) return(false); return(true); }
DislikedWhat does TimeCurrent() do?
Or should I use the format 19:00:00 instead of 1900 when using TimeCurrent() to compare?Ignored