Weighted fitness doesn't work for some metrics

For example, if you select ONLY Net Profit as your weighted fitness criterium and sort the results by the fitness column you will see that the order is wrong when compared to sorting the Net Profit column.  This is true for many of the fitness items (though I didn't test them all).   I didn't attach a config file because it does it for all builds that I've tried.  I also tried version 139 and the problem is still there as well.
Attachments
No attachments
  • Votes 0
  • Project StrategyQuant X
  • Type Bug
  • Status Waiting for information
  • Priority Normal
  • Assignee Tamas

History

MJ
#1

Mitch

05.04.2024 22:26

Task created

TT
#2

Tamas

11.04.2024 09:27

Assignee changed from Tamas to Tamas

Status changed from New to Waiting for information

Hello,


there is a specific procedure concerning the NumberOfTrades. If it falls below a certain threshold, we adjust the fitness accordingly.


Could this potentially be the problem in your situation?


If not, please attach the strategies so that I can investigate further.


Best regards,

Tamas



if(trades < 20) { fitness *= 0.3; } else if(trades < 30) { fitness *= 0.4; } else if(trades < 50) { fitness *= 0.6; } else if(trades < 70) { fitness *= 0.8; } else if(trades < 100) { fitness *= 0.85; } else if(trades < 150) { fitness *= 0.9; }


MJ
#3

Mitch

12.04.2024 15:26
Yes that would cause it.  I would have that separated out as a separate factor instead of always included in the weighting.  Or have a specific factor that is sqrt ( number of trades) so there are diminishing returns as the number of trades goes up.  
MJ
#4

Mitch

12.04.2024 22:45
Number of trades is also in the weighted fitness list.  I would just create a metric that is SquareRoot(number of trades).

Votes: 0

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please