For example, if the daily range was 2400-2410, I'd want to take trades that only happened at 2400 for that day, then re-run the test at 2400.25, 2400.50....etc. So, there would be 40 total tests (10 / 0.25).
The obvious problem is that the Optimizer requires a hard-coded range and I don't think there's a way to put the dynamic daily range in there...is this correct? If that's true, does anyone have any suggestions on how to implement this?
The only thing I could think of is to create 2 custom properties (RangeHigh, RangeLow) and set them with a huge range (500-3500) in the Optimizer which would cover the last and the next 5 years and then set the iteration value to 1 * TickSize. Then, I'd have OnBarUpdate check what the previous day's High/Low was and assume today's range will be within +-100 points. Finally, if the Optimizer is trying run a test outside that range, have OnBarUpdate exit out of the test.
Is this possible? Can OnBarUpdate detect properties changed by the Optimizer iterations?
Comment