Since there is no way to batch optimizations in NT I am trying to use WF to get daily optimization levels over a time period instead of running them one at a time with the standard optimizer.
What I am looking to do in the WF is pretty simple: run an optimization for an entire trading day and then test the optimal parameters on the following trading day.
I am running it on MNQ and using the default instrument setting trading hours with an optimization period of one and a test period of one.
The WF optimization numbers look ok until it hits a weekend. I would expect the optimization to run on Friday's session data (Thurs open at 5:00 PM till Friday close at 4:00 PM) and apply those levels to the following trading day (Sunday open at 5:00 PM till Monday close at 4:00 PM).
Instead, it applies the Friday levels to Saturday, which generates no trades obviously. Then it creates seemingly random Saturday levels that are applied to Sunday creating no trades. Then it creates optimized levels for Sunday and applies them to Monday which gives me bad results. It gets back on track for Tuesday's trading since Monday was an actual trading day.
I thought about using RTH or ETH hours but I want both in my optimization. It is my understanding that the default instrument session settings for a CME index product are both of the sessions combined.
I must be doing something wrong. This can't be normal behavior.
The testing/result data is really not that important to me as I only need the optimization numbers for each day (though I may have some use for it later on)
All I really need is the ability to run an optimization and log the daily results for a date range. I do not need the optimal results for the entire range, I need to reset and log the results at the end of each trading day and then start a fresh run for the following day.
Any help with the WF weekend issue I am having or if there is a way to batch daily optimization runs over a series of days would be greatly appreciated.
Thanks,
Mike
Comment