Fitness compute on sharpe
10 replies
Charles Umani
4 years ago #266683
Hi, i need your help to understand…
when i choose to compute fitness on the sharpe ratio (full settings > strategy quality ranking > main data backtest > weighted fitness > Sharpe ratio) i have results like that.
i think the highter fitness need to be the highter sharpe ratio no ? does that make you look normal ?
thanks by advance !

tomas262
4 years ago #266699
Hello,
make sure Sharpe ratio column shows the same data sample as the fitness column (IS, OSS, Full). The fitness values is calculated for all these separately
hankeys
4 years ago #266712
isnt the problem that the fithness function is computed separatedly for each island or each genetic restart?
You want to be a profitable algotrader? We started using StrateQuant software in early 2014. For now we have a very big knowhow for building EAs for every possible types of markets. We share this knowhow, apps, tools and also all final strategies with real traders. If you want to join us, fill in the FORM.
Charles Umani
4 years ago #266714
very good question henkeys !
for this test, no OOS. sharpe is compute on full data so it’s like full IS. globally, best sharpe ratio is associated with best fitness rank but regularly I see a poorer sharpe ratio higher in the ranking.
hankeys
4 years ago #266718
i am not using any fitness criteria, but i am only curious how its working – and if fitness is used as ranking in building stage and the builder is somehow restarted and starts from the scratch, so the same must be done with the fitness function
am i right or not? only devteam knows…
You want to be a profitable algotrader? We started using StrateQuant software in early 2014. For now we have a very big knowhow for building EAs for every possible types of markets. We share this knowhow, apps, tools and also all final strategies with real traders. If you want to join us, fill in the FORM.
Charles Umani
4 years ago #266719
fitness is what is used by the genetic agorithm for “orientation”. Even if it is not used to classify, it is mandatory to master it well to correctly manage the genetic algorithm. the fitness is always use finally
DarkHope
4 years ago #266738
I did made this exactly question, and i was answered by Mark in person, the fitness function is weighted by number of trades, exactly if the strategy is having more than 100 trades or less than 100 trades.
So sometimes, if you are using the Sharpe ratio, for example, one strategy can have higher Sharpe, but lower fitness, because of the number of trades, compared to another strategy that have lower Sharpe but higher number of trade and so higher fitness, hope this will answer your question.
I did also ask to remove this, or to put it like choosable option, and of course i was not listened, i received only the answer that they can make a custom version only for me (by paying of course…)
hankeys
4 years ago #266739
this is from java of the sharpe ratio – you can take a look at the computations in the snippets folder
double returnsMean = StatFunctions.computeAverage(dailyReturnsPct);
double returnsStddev = StatFunctions.computeStdev(returnsMean, dailyReturnsPct);
double sharpeRatio = Math.sqrt(252) * SQUtils.safeDivide(returnsMean, returnsStddev);
You want to be a profitable algotrader? We started using StrateQuant software in early 2014. For now we have a very big knowhow for building EAs for every possible types of markets. We share this knowhow, apps, tools and also all final strategies with real traders. If you want to join us, fill in the FORM.
DarkHope
4 years ago #266741
This is how the Sharpe ratio is computed, i was talking about how the Fitness function is computed, weighted by # of trades.
DarkHope
4 years ago #266742
And of course you can’t see how the fitness is computed in the snippets, because is an internal code, please hankeys every time i see some your answer (lot of time out of topic), only to say something, only to answer, i suggest you to answer only when you are sure of saying something related, thanks.
kasinath
4 years ago #267236
Darkhope : this was a fantastic answer, and you solved my mystery. I am surprised to see that it is related to the count of how many trades. That explains why my fitness doesn’t make sense.
Thanks.
Viewing 10 replies - 1 through 10 (of 10 total)