♥ 0 |
Hi Pete, When testing back strategies is there a way to test for specific dates or strategy between specific dates?
Marked as spam
|
Private answer
You are going to have to be more specific than that. There are numerous examples already in the forum that show how to buy on specific dates, days of the week or days of the month. There is nothing in the settings that can facilitate this. Every case must be evaluated and a custom solution is always requred. I am moving this post out of the "Alerts and Notifications" topic and into the "Strategy Guide" topic to better fit your request.
CAUTION: The AddOrder() statements provided in this original code have serious mistakes in the way it selects and displays the entry and exit prices. Do not attempt to use this code for back-testing unless you are willing and able to correct the AddOrder() statements. Now here is the same code with my modifications to make the start and end dates fully functional. Please note that I am not correcting the errors in the AddOrder() statements in this modified section of code.
For those who are interested in correcting the errors in the AddOrder() statements I will provide a link to a previous post where I explain how to get the entry and exit prices into the correct alignment: https://www.hahn-tech.com/ans/parablic-sar-signal-not-firing-in-tos-strategy/ Marked as spam
|
Please log in to post questions.