At certain times of the year I want my model not to trade.
I need to figure out how to get the week number.
I used weekNumber = date.today().isocalendar()[1] which does return the week number however it is the same value when back tested because it is today's date, not the system date.
I tried using date_rules but it does not have the object .isocalendar()[1]
Any ideas?