Closed days and EA
-
Hello all!
I would like to not trade during holidays. I give you an example. I want my EA don't open trades the 26th may 2022. How can I define this day in my EA? And if I want to define a schedule like "01/05/2022" & "26/05/2022" & "24/12/2022" & "25/12/2022"....
Thanks for your help -
@bagheria You can get time/date with code, you could then use a condition with the date/times in (use a string/text) the value, in this link you will see how to get market closed aswell (only works on MT4).
-
Thank you so much but I am creating an EA with MT5 platform, not MT4...
-
@bagheria Then you can't use market closed but everything else works, just copy.