Searching for entries matching system, looking in keywords for any words Found 2 matching entries
Entries
466
shodson
This is Van Tharp's System Quality Number (SQN) optimizer type for NinjaTrader. Place the SQN.cs file in your Documents\NinjaTrader 6.5\bin\custom\Type directory and then exit and reload Ninja.
Here is information from Ragingbull on SQN:
Quoting
The only way to seriously qualify and optimize any system is through its System Quality Number (SQN). I advice you to refer to Van Tharp for reference on the subject.
Assuming a set of N trades (N>30 for being statistically significant), SQN is defined as follow:
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.
The code itself was written by Pete S all credit to him.
To use this you need to use Strategy Analyzer and change your "Optimize on..." selection to "my system quality number". This is where you normally choose max net profit, or max profit factor, etc.
May 10th, 2021 11:58 AM SodyTexas My only issue is this is NOT the van tharps SQN number. In order to know what the SQN number is you need to know what th
e R (risk per trade) is for each trade. All this is doing is taking your number of trades multiplied by the avgProfit th
en divided the total by its standard deviation.
I would recommend that you read the book before claiming to have an indicator claiming to be something it is not.