kelly = @(k) sum(ret./(1+k*ret));
k = fzero(kelly, 20);
PF = sum(ret(ret > 0)) / sum(-ret(ret < 0));
SAS = k * PF;
Yes.kut2k2, I think I've got your System Achievement Score working. I'm going off this post: http://www.elitetrader.com/vb/showpost.php?p=3963107&postcount=170
It simplifies a little for my project. E is always equal to 1, since I've normalized the return for all simulations. I left off the 4, since it won't alter the rankings. And I set mant = N, since I don't really have a number of trades for these simulations. I suppose you could say that I'm assuming a single trade every day. My MATLAB code basically simplifies to:
Typical values of k are around 22, PF is around 1.4, which puts SAS typically around 30. Have I made any mistakes?Code:kelly = @(k) sum(ret./(1+k*ret)); k = fzero(kelly, 20); PF = sum(ret(ret > 0)) / sum(-ret(ret < 0)); SAS = k * PF;
Leverage? I've never seen a legitimate k value that approaches anything that can be classified as "leverage". If you're using the ludicrous CK formula to calculate your k values, no wonder your results are so off. Go to the Trade Management forum, I've written about this extensively there.I suppose I've seen a few strategies that were somewhat less interesting to me because the return was only a little above the risk-free rate. But generally, I don't put much weight on the intrinsic leverage of a strategy. I've never used up what leverage I've had access to. If that's the core of SAS, then I suppose this experiment isn't appropriate to test it.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Hi everyone,
I'm setting out to create a better single metric to use when backtesting strategies. I've always used the Sharpe Ratio, but it isn't perfect. It fails to consider the max drawdown, number of losing months, etc. Also, I'm less interested in strategies that haven't worked for the last couple of years.
Would you have time to rank some simulated backtests?
http://www-scf.usc.edu/~gfharris/rank.html
My hope is you'll help me rank a good number of charts. Then, I'll try some machine learning algorithms to develop a metric that better predicts the rankings:
http://en.wikipedia.org/wiki/Learning_to_rank
As I've now gone back to school, one of my goals is to publish the results. So, in the end, I will present the method and accuracy in a formal whitepaper. I will post the finished algorithm in MATLAB and perhaps a few other languages. Of course, since I'm asking the broader community to help with the ranking, I will post the charts, raw data, and all the rankings on the website upon the completion of this project.
I'm interested in hearing your feedback. In my reading in EliteTrader, I've found the following metrics discussed, and I'm curious to see how well each can predict the community rankings:
Sharpe Ratio
Profit Factor
maxdrawdown
percent of trades profitable
average winning trade return
average losing trade return
ratio avg win / avg loss
max consecutive winners
max consecutive losers
largest winning trade
largest losing trade
profit per month
max time to recover
average MAE
average MFE
average ETD
Recovery factor
CAR/Maxdd
profit factor
rr ratio
ulcer index
K Ratio
I sincerely appreciate your help, and I know your time is valuable.
, But the one with the smallest drawdown,[ first year smaller drawdown + larger finish price ] looks MUCH better, since both charts are same total gain start to finish [5 year charts your data says]. Not that 5 years data means much ; it does not. All data is helpful