System Quality Number : Evaluation of performance of algorithm
Forums › ProRealTime English forum › General trading discussions › System Quality Number : Evaluation of performance of algorithm
- This topic has 15 replies, 6 voices, and was last updated 6 years ago by victormork.
-
-
08/23/2017 at 5:41 PM #44484
Hello
I am looking for an evaluation of the “quality” of algorithm.
I have found System Quality Number metrics developped by Tharp.
Does someone used it for evaluation of his own algorithms or available strategy on the library?
Regards
Yannick
08/23/2017 at 8:21 PM #4449108/24/2017 at 6:42 PM #44587Every thing is written in his book
08/25/2017 at 9:44 AM #4460908/25/2017 at 12:09 PM #44625Hi Yannick! I use it on my systems and one easy way to calculate it is to drag the backtest history into excel and then follow his example from the book. It’s very helpful in order to separate good systems from less good systems even if the equity curve looks good to start with. The square root of 100 that he brings up in the book is much better than to use than all trades since a large number of trades gives a better result. But also watch out for systems with very few trades which can get a number which is not realistic. I have attached a picture for you to get an idea of how how it can be done in excel.
1 user thanked author for this post.
08/26/2017 at 1:50 PM #44668@victormork Thanks, have you already ranked some available strategies ?
SQN= Squareroot(N) * Average (of the N Profit&Loss) / Std dev (of the N Profit&Loss).
The large the N, the more trading opportunities you have.
The large the average P&L, the better you are obviously.
The smaller the Std dev (P&L), the more regular are your results and the smaller are the drawdowns.
Note here that if you optimize for the largest SQN, you maximize in fact the product N*average P&L and you minimize the Std dev (P&L) and the drawdowns at the same time.This is exactly what all good traders should be looking for their system
08/26/2017 at 9:51 PM #44682
Yes I have. I do it for all strategies I consider to test.
08/27/2017 at 1:24 PM #4470908/27/2017 at 2:44 PM #44715I can’t possible answer that because I have not tested them all but if you wish for some direction I can say that the short side of rsi2 systems on forex 1h tf tend to score high. However I find these results a bit misleading due to the fact that mean reversal systems close out on pullback no matter if they are right or wrong. So the drawdown during open trades feels much worse than what the backrest shows. I would rather recommend some kind of breakout system with a hitrate above 55-60% and a gain/loss around 2 or higher if your are looking for a high sqn. But be aware that the same problem as I described for the rsi (small profit and large stop distance) can occur here too.
10/04/2017 at 5:01 PM #48210would be also interested if someone can get this book in a downlable free format;) Anyway, on this forum they talk about one concept from the book, the percent volatility model to determine the correct positions size.
Basically, this is:
positionsize=(equity*risk)/(daily ATR* contract value).
the code here below works fine on index:
TF=24//timeframe – 1H = 24
DailyRange=max(abs(Dhigh(1)-Dlow(1)),max(abs(Dhigh(1)-Dclose(2)),abs(Dlow(1)-Dclose(2))))
DailyATR=wilderaverage[20*TF](DailyRange)
PositionSize = round((equity*risk)/(DailyATR*pointvalue))for fx: adapt the last line as following: PositionSize = round((equity*risk*pipsize)/(DailyATR*pointvalue))
I find this very usefull, also to compare correctly the robustness of one algo on multiple indexes without adapting manually the positionsize
10/05/2017 at 2:46 PM #48298Thanks! I didn’t know how to calculate that, even though I read van tarps theory’s about it.
10/05/2017 at 3:03 PM #48300Tharp has a lot of screenshots in his book from “Know you system software”. Obviously a program he uses to evaluate systems. This screenshots look AWESOME. I really would like to have this software but it says “Software not for sale”. 🙁
Isn’t here somebody with a black belt in excel who can reproduce something similar? My knowledge of Excel is extremely basic – insufficient to accomplish something like that.
11/19/2017 at 11:17 PM #53267Can someone explain again how you calculate sqn value? 1.73*g/divided by?
11/20/2017 at 2:46 PM #53310The best way is to use SQN over 100 trades which makes it more difficult to score a good value.
Summarise your expectancy of R and divide them by the standard deviation of R. For this step you can use all trades in your backtest.
Multiply the result with the square root of 100 and you are done.
11/21/2017 at 11:28 AM #53422 -
AuthorPosts
Find exclusive trading pro-tools on