Searching for entries matching sqn, looking in keywords for any words Found 4 matching entries
Entries
2461
ivanjocic
This in a NinjaTrader strategy that I use to output information and charts about an instrument, including:
-Range statistics (Including ON, RTH, and IB)
-Harmonic Rotation data
-Day Type data
-SQN Market Type data
When you run this strategy, it will output an Excel Spreadsheet to the directory you specify in the parameters.
There are multiple requirements to run this strategy. This makes use of Microsoft's Interop functionality to generate an Excel spreadsheet. Therefore you MUST have Microsoft Interop installed and add a reference to the Microsoft.Office.Interop.Excell.dll in NinjaTrader. You can learn more about how to do this here. And a big thank you to DionysusToast for his contribution.
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.
July 15th, 2010 01:29 PM sbgtrading The authors info is in the indicator code file itself, as a comment.
September 16th, 2009 06:45 AM HJay I recently added this to my range charts. I will let you know how it goes. From what I can see it does a pretty good j
ob at identifying R/S points. Thanks for the effort!
January 3rd, 2024 12:30 PM Leafcutter Unbelievable that there are just 86 downloads in more than 2 years till today. This is a great tool as far as I can say
after testing it just on a few strategies- thank you very much for sharing!