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;
}
Ideally it would be nice to be able to turn this on or off or modify these calculations in a snippet. Sometimes I just don't need this because I've already accounted for number of trades in my custom fitness calculations.
Subject changed from hardcoded number of trades coefficient is calculating fitness adjuster from main data only even when portfolio fitness is selected to Hardcoded number of trades coefficient is calculating fitness adjuster from main data only even when portfolio fitness is selected
Type changed from Feature to Bug
But it is not so easy, there is also a function for transforming the value to fitness range so on.
We can discuss it later. Now the priority for SQX137 is fix the most serious bugs. 137 final should be ready at end of the month.
Status changed from New to In progress
If fitness is computed from portfolio then:
- if it is Portfolio it doesn't apply this coefficient at all.
- if it is Existing portfolio it uses the coefficient, but uses # of trades from portfolio, not just main result
So I'd say everything already is as you want it.
Status changed from In progress to Refused