Prevent trading on certain day of month
-
I'd like to not trade on certain days.
For example - in input settings I would have a filter that is:
'Don't trade on these days' : '1, 3, 5, 11, 12'
...and it won't trade on those specific days of the month (1st, 3rd, 5th, 11th, 12th).How could I implement this?
-
You can use a variable counting +1 every single day and then decide what values for that variable to be 'untradable'. The problem is defining 'the 13th day of the month'. Do you mean the 13th trading session or simply day 13 on that that month? Because they will only be coincidental when trading crypto. On any other asset, that will not happen.
-
I mean date (of the month). For example, you apply an EA to the chart this month and want to prevent trading on the 19th. How could you specify this date in input settings?
To give context, I would like to run strategy tester over a period of months but not trade, for example, US CPI or NFP but sometimes these fall on different days. If you only have a weekly filter you have to test 1 week at a time. But if you had a date filter you could test by month or even the whole year.
-
