I have been developing an optimizer fitness that matches with my needs.
When I optimize a strategy using one of the optimizer fitnesses that come with NT8 by default the optimizer behaves correctly. But, when I apply mine, the optimization stops when finding a match instead fo finishing the optimization process and displaying all the results.
I explain what are the goals of my optimizer fitness and I show the code:
- I want only to be displayed the optimization results that offer a minimum number of trades. I prefer the results with a higher number of trades.
- I want the code to loop through all the trades and discard the optimizations with trades that do not match a certain criterion and I do not want them to be shown in the result list of the optimization.
The code is attached.
I just would like to know why my code makes the optimization to stop when finding a match instead fo finishing all the process like it happens with the default fitnesses that come by default with NT. If you want it to test you can use SampleMACrossover strategy.
Comment