Looking to implement a strategy that rotate/rebalances twice every month :
a) First trading day of the second week
b) Last day of the month
For last day of the month, I can use DateRules.LastTradingDayoftheMonth. But how can I check for the first trading day of second week? Scale is set to 60 minutes.
Thanks,
Size:
Color:
This question has been asked and answered before. Don't hesitate to try out the convenient search-as-you-type function. Type in a few letters in the search box and you'll find this:
First trading day of the weekAnd the answer would point at:
Start of a new trading week?See my reply #3 for
GetWeekNumber. Hope this helps.
Size:
Color:
Thanks, Eugene.
Size:
Color: