Disable Trading At Market Open Only
-
Hi,
How do I create a condition that stops all trades during say 00:00 and 05:00 (market time) on a Monday morning but allows trading all other times and days?
I know about time, hour and day blocks but if you try you'll find they don't combine to restrict a block of hours on only one day while letting the trading happen freely the rest of the week.
I might just have to disable all of Monday and let the EA trade the rest of the week but that is a loss of a whole days trading (versus just the first few hours).
Cheers,
Sam
-
You should combine a "Weekday" & "Hours" filter block for that.

If Weekday == Monday && Hours == 00:00 - 05:00 -> No Trade (because there is nothing connected to the True output of the Hours filter)
If Weekday is Monday && Hours is not 00:00 - 05:00, False output is activated on the Hours filter allowing to trade on Monday.
If Weeday is not Monday, False output is activated on the Weekday filter allowing to trade the rest of the weekdays.
It should work.
-
Genius - thanks.
Would you know of a way to create a drop down menu to select which day (or even days) the nominated No-Trade hours should apply to?
Possibly a drop down list for the seven days of the week to choose "Allow/Reject' but preferably just one list of the seven days to nominate one day from.
Regards,
Sam
-
You want such list in the EA input properties? I know that anyone can create enumeration that will appear there as a drop-down, but then only 1 value can be selected, not multiple.
-
come to think of it (over night) i don't really need to select the day - just fix monday and then allow to set start and finish hours (using constants).
No drop down list needed for these settings.
I have programmed drop downs for some time frame inputs and money management inputs - these would be nice if FxDreema could do itself without the need to manually edit in metaeditor but it's no biggy!