| / | Forum |
|
giulioron
2010.04.16 16:23
hi guys..... |
|
Requirements Applicable to Articles Offered for Publishing at MQL4.com Requirements Applicable to Articles Offered for Publishing at MQL4.com |
|
Automated
2010.04.16 16:36
I guess you are trying to avoid opening an order during the last 4 hours of Friday. If this is the case you could do something like:
- get the current brokerage time with http://docs.mql4.com/dateandtime/TimeCurrent - check if it is Friday with http://docs.mql4.com/dateandtime/TimeDayOfWeek - if so then check if it is after 19:00 - use http://docs.mql4.com/dateandtime/TimeHour to get the hour - and if this is true as well, then skip opening trades... sounds long to describe it, but it is actually just 1 line of code... You may want to do a search, I am pretty sure this question has been asked and answered before... thank you Automated -- grid trading EA, +558 pips in 24 hours: http://grid9.forexmosaic.com/ - 8621 pips in 7 weeks of grid trading |