Hi All,
after some years of testing with some Trading systems made by me, the best Value for K-RATIO i get is 0.12 with backtesting from 2000 to 2017 on 100 stocks.
Wich number are desiderable, wich number you get in your experience ?
@lanas I don't have a direct answer for you other than larger is better. This may have been discussed in the old forum.
But if you do some research into the K-Ratio you will be able to better compare systems and increase your knowledge about this useful measure of system performance.
Lars Kestner first introduced this measure in an article in TASC in ~ 1996. He wanted to know how smooth the equity curve of a system was, and here is where he claimed "I have developed a new method of evaluating performance that is more robust than current popular techniques. This method, which maintains the idea of measuring reward as compared with risk, utilizes more advanced statistical techniques to quantify performance. Rather than simply looking at returns independently, consistency of results through time will be the focal point of this new performance method. "
But the problem is the K-Ratio has had its formula changed twice since then. 2003 and 2013. I think AmiBroker is using the 2003 version (not the best IMHO, but then again I don't look at K-Ratio often)
Zephyr Associates, Inc. put there spin on it in 2003
Hi Portfoliobuilder
thnks for answer me, it 's hepful.
We use in amibroker the oldest formula of K-ratio. Here you can see the line of my TS from 2000 to yesterday :
This line, for me is a good line ...very consistency. But the score is "only" 0.12. If i start to backtest fromn 2003 the line is more more better, but the K-ratio valure is only 0.13. So, the question is.... with the oldest formula, the objective is 1.0 ? or 5 ??? Seem impossible for me to arrive over 0.20...
Thanks very much for this material. The final (2013) version is the only one that IMHO could be useful PROVIDED THAT logarithms of values are used. That is because a linear regression loses contact with any non-linear trend, somewhere. With that in mind, using older K-ratio over any longish period is likely to give low values.
Need help with a review of the 2013 K Ratio formula. Please can anyone confirm if this calculation looks legitimate? I am new to AFL and statistics. I want to use this over 10+ year periods.
if( Status("action") == actionPortfolio )
{
bo = GetBacktesterObject();
bo.Backtest(); // run default backtest procedure
st = bo.GetPerformanceStats(0); // get stats for all trades
dt = DateTime();
TestStartDate = DateTimeConvert(2, Status("rangefromdate"));
TestEndDate = LastValue(dt);
YearsInTest = DateTimeDiff(TestEndDate, TestStartDate) / 31557600;
NumTrades = st.getvalue("AllQty");
TradesPerYear = NumTrades / YearsInTest;
Adj_K_ratio = st.GetValue("Kratio")*sqrt(TradesPerYear);
// Here we add custom metric to backtest report
bo.AddCustomMetric( "Years in Test", YearsInTest, Null, Null, 1);
bo.AddCustomMetric( "Trades Per Annum", TradesPerYear, Null, Null, 0);
bo.AddCustomMetric( "K ratio 2013", Adj_K_ratio, Null, Null, 3);