♥ 0 |
Hello, I was wondering if it was possible to execute a strategy on a specific day of the week. If I only want my strategy to backtest trades on say Tuesday vs all market hours, is this possible? I have played around with thinkscript and so far I have not found a solution. Thanks
Marked as spam
|
Private answer
For this we can use a function named “GetDayOfWeek()”. Get details here: http://toslc.thinkorswim.com/center/reference/thinkScript/Functions/Date—Time/GetDayOfWeek.html You did not provide an code so the only thing I can offer is to show you how to use that function to create a true/false variable you can use to filter when your strategy can post a theoretical order to the chart.
Marked as spam
|
Please log in to post questions.