Van Tharp's SQN (system quality number) - Psychology and Money Management | futures io social day trading
futures io futures trading


Van Tharp's SQN (system quality number)
Updated: Views / Replies:16,963 / 27
Created: by caprica Attachments:5

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors – all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you don’t need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 5  
 
Thread Tools Search this Thread
 

Van Tharp's SQN (system quality number)

  #21 (permalink)
Elite Member
Atkinson, NH USA
 
Futures Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker/Data: NinjaTrader Brokerage
Favorite Futures: Futures, CL, ES, ZB
 
NJAMC's Avatar
 
Posts: 1,925 since Dec 2010
Thanks: 2,962 given, 2,294 received


Luger View Post
It was in the original SQN code so I left it. If there are less than 30 trades, then SQN returns zero due to too small of a sample. I think that part also checks the number of parameters in the strategy and if there are more than 30, then that number becomes the floor.

I could be totally wrong. It would be nice to have someone who is a better coder to evaluate that section because it may just be wasting cpu cycles.

Hi @Luger,

Not sure if it still matters, but happen to be pointed to this thread for your PEC, but in the Loop, it appears this is scanning for a parameter named "SQNMinTrades", when if finds the parameter, it sets minTrades equal to that value and the bails out of the loop with the break statement. So, if there are 100+ parameters, and the 2nd parameter is found to be "SQNMinTrades" it retrieves the value and then exits the For loop, saving 98 or so useless comparisons as there is likely an assumption the parameter is unique int he list.

Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: NT-Local-Order-Manager-LOM-Guide
Artificial Bee Colony Optimization
Reply With Quote
 
  #22 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,356 given, 83,237 received


Luger View Post
I am attaching the Perfect Equity Curve (PEC) variants as well.

PEC
PEC * Max Profit
(PEC * Max Profit * Trades per Day) / (Long Short ratio derivative)

I would stay with the SQN and variants. The PEC versions truly do favor smoother curves at the expense of many other considerations. This ended up mostly an academic exercise, and I am posting just for anyone that is curious. Though I guess it could be used to check a smaller optimization field once the larger population has been narrowed down.

For example, I optimized one variable on my bot with just PEC. Usually the top few choices run from 58k-63k profit. Pure PEC gave me 22k for the first three, then got to some in the mid to upper 50k.

@Luger,

Would it be possible for you to make a small edit to these please?

I need to discard runs that result in an "Infinity" score, ie 100% percent profitable. What's happening is sometimes the optimizer is finding a magic combination that gives it extremely low trade frequency (ie 50 trades) but 100% winners, and it's overriding the trades I really want (ie 5,000 trades @ 40%).

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
 
  #23 (permalink)
Elite Member
Germany
 
Futures Experience: Advanced
Platform: TradeStation
Favorite Futures: Futures
 
Posts: 88 since May 2012
Thanks: 53 given, 90 received



Big Mike View Post
@Luger,

Would it be possible for you to make a small edit to these please?

I need to discard runs that result in an "Infinity" score, ie 100% percent profitable. What's happening is sometimes the optimizer is finding a magic combination that gives it extremely low trade frequency (ie 50 trades) but 100% winners, and it's overriding the trades I really want (ie 5,000 trades @ 40%).

Mike

I'd rather implement a minimum number of trades requirement for this type of fitness function. Not dependent on the number of parameters, that doesn't make sense to me, just a user provided value.


Last edited by Outlier; February 9th, 2013 at 12:22 PM.
Reply With Quote
 
  #24 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,356 given, 83,237 received


Outlier View Post
I'd rather implement a minimum number of trades requirement for this type of fitness function. Not dependent on the number of parameters, that doesn't make sense to me, just a user provided value.

I am not aware that NT7 has that capability, to pass a user value to the Fitness test. If it does, that would be fine by me as well.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
 
  #25 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,356 given, 83,237 received

New thread for Optimizer Types

https://futures.io/elite-automated-trading/25792-optimizer-types.html#post300637

Will update more later.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
 
  #26 (permalink)
Trading Apprentice
Monterrey Mexico
 
Futures Experience: Intermediate
Platform: NinjaTrader, ThinkorSwim
Favorite Futures: VX
 
Posts: 2 since May 2016
Thanks: 0 given, 0 received


Luger View Post
@Big Mike

I am attaching your requested optimizer type. The new score considers Max Profit, SQN, Trades per Day, and the ratio of Long Profit to Short Profit.

There is one variable in there for the Long/Short Profit that is easy to change. I was not sure how sensitive you wanted this metric to be. I left comments in explaining.

//This value represents the floor to a divisor representing long short profit split
//0.1 = (60/40 split = 50/50 split = 40/60 split) performance would be halved at (70/30, 30/70)
//For a value of 0.05 (55/45 split = 50/50 split = 45/55 split)
//performance would be halved at (60/40, 40/60)
double rngLongShortBalance = 0.1;
//Actual calculation so that you can see what I am dividing by in the final output.
double rngLSbalance = Math.Max(rngLongShortBalance, Math.Abs(0.5 - (totLongProfit / totProfit)));

Basically, I thought you could use that variable to to set your own acceptable range outside of which there are reductions in the final score.

Otherwise the final score looks like this:

(SQN * Max Profit * Trades per Day) / (Long Short Ratio derivative)

To install place attached file in:
NinjaTrader7\bin\Custom\Type
Open Ninja Trader editor and compile any indicator or strategy

I am also going to take a look at the idea you mentioned about variation around a smooth upward sloping profit line as a possible improvement to the SQN number. Right now I can't visualize if that is going to be an improvement or end up causing problems somewhere.

Is there an update of this metric or optimizer fitness for nt8?

Can somebody do that? I have tried but I don't I have enough experience or undestanding

Reply With Quote
 
  #27 (permalink)
Trading Apprentice
Monterrey Mexico
 
Futures Experience: Intermediate
Platform: NinjaTrader, ThinkorSwim
Favorite Futures: VX
 
Posts: 2 since May 2016
Thanks: 0 given, 0 received

Do you have an update for N¡injaTrader 8?

Reply With Quote
 
  #28 (permalink)
Trading Apprentice
Madrid, Spain
 
Futures Experience: Advanced
Platform: Multicharts
Favorite Futures: miniSP
 
Posts: 13 since Feb 2017
Thanks: 1 given, 1 received

Hello,

I am looking for SQN.cs for NT8. I want to optimize by the SQN ratio with NT8, but I can't find this document anywhere.

Thanks.

Reply With Quote

Reply



futures io > > > Van Tharp's SQN (system quality number)

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Van Tharp Books Dusty909 Psychology and Money Management 22 August 15th, 2016 12:57 PM
Van Tharp's Max Expectancy caprica Psychology and Money Management 31 January 22nd, 2015 12:55 PM
Position Sizing by Van Tharp Laserdan Psychology and Money Management 21 July 8th, 2011 11:37 AM
System Quality Number for MC? WayneA EasyLanguage Programming 5 July 21st, 2010 09:09 AM
What Type Trader Are You? - more from Van Tharp Trader.Jon Psychology and Money Management 0 November 12th, 2009 09:47 AM


All times are GMT -4. The time now is 09:08 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2017-12-18 in 0.21 seconds with 20 queries on phoenix via your IP 107.20.115.174