I developed an optimization fitness that worked fine in NT7 but when translated to NT8 it has an unexpected behaviour.
As a simplified example of what I am doing I set this code:
protected override void OnStateChange()
{
{
Name = "MyCustomOpt";
protected override void OnCalculatePerformanceValue(StrategyBase strategy)
{
This code structure in NT7 gets all the results with 2 trades or more that have a profit factor bigger than 80. I it gets these conditions the GO displays the result. If not the result is zero. I am interested in the results that offer more trades.
The point is that I only get one result and all the others are zero. Thus, I suppose that when it finds the first result different to zero it stops.
Can I avoid it?
Comment