Strategy Quant and excluding trading on certain dates
3 replies
Philip Hoffer
2 years ago #287901
Hi,
Is there a way in which I can restrict my strategy from opening/holding positions on certain dates, e.g. first Friday of every month when the Non-Farm Payrolls report is released?
I guess I could just build a session with all Fridays excluded but that seems heavy handed.
Thanks
Phil
0
Tomas Matejka
2 years ago #287931
Hi,
you can do that only in AlgoWizard by editing the strategy. You need to add a new conditions that use Bar Time = GetTime(h, m) or Bar Date = GetDate(d, m, y) functions
Also there are functions to avoid trading specific day of week or day of month.
See the image attached
0
1 year ago #289440
“Also there are functions to avoid trading specific day of week or day of month.”
Hi, I would love to read a complete explanation on how to do that, I can’t get it, is there any document or video out there, thank you in advance.
0
Tomas Matejka
1 year ago #289514
Hi,
we have no special documentation for. The solution is simple. If you want to avoid trading for example on Wednesday or take no trades in March you can do that as shown in the screenshots attached
Days are numbered from 0 to 6 starting Sunday
0
Viewing 3 replies - 1 through 3 (of 3 total)