NexusFi: Find Your Edge


Home Menu

 





Position Sizing by Van Tharp


Discussion in Psychology and Money Management

Updated
      Top Posters
    1. looks_one MXASJ with 6 posts (21 thanks)
    2. looks_two Laserdan with 6 posts (7 thanks)
    3. looks_3 Big Mike with 3 posts (5 thanks)
    4. looks_4 vio1965 with 2 posts (2 thanks)
      Best Posters
    1. looks_one Prtester with 5 thanks per post
    2. looks_two MXASJ with 3.5 thanks per post
    3. looks_3 Big Mike with 1.7 thanks per post
    4. looks_4 Laserdan with 1.2 thanks per post
    1. trending_up 23,743 views
    2. thumb_up 44 thanks given
    3. group 9 followers
    1. forum 21 posts
    2. attach_file 3 attachments




 
Search this Thread

Position Sizing by Van Tharp

  #11 (permalink)
 Laserdan 
North Carolina
 
Experience: Beginner
Platform: Ninja Trader
Broker: Ninja Trader Broker / Continuum
Trading: ES
Posts: 57 since Jun 2009
Thanks Given: 4
Thanks Received: 57


Quoting 
Does your account balance change enough intraday to affect the number of contracts you can trade?

lol...no, but it would be nice to allocate different amounts per instrument, so set it in the strategey options, when running multi strats

Follow me on Twitter Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
Better Renko Gaps
The Elite Circle
ZombieSqueeze
Platforms and Indicators
Exit Strategy
NinjaTrader
REcommedations for programming help
Sierra Chart
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
30 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
16 thanks
  #12 (permalink)
 Laserdan 
North Carolina
 
Experience: Beginner
Platform: Ninja Trader
Broker: Ninja Trader Broker / Continuum
Trading: ES
Posts: 57 since Jun 2009
Thanks Given: 4
Thanks Received: 57


Prtester View Post
Some time ago i post some example in the NT Forum, but don't develop any further, if someone interested, we can make it here.

Position Size Algorithm - [AUTOLINK]NinjaTrader[/AUTOLINK] Support Forum

Hey thanks...I will see what i can do...

Follow me on Twitter Started this thread Reply With Quote
Thanked by:
  #13 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,442 since Jun 2009
Thanks Given: 33,215
Thanks Received: 101,600



Prtester View Post
Some time ago i post some example in the NT Forum, but don't develop any further, if someone interested, we can make it here.

Position Size Algorithm - [AUTOLINK]NinjaTrader[/AUTOLINK] Support Forum


Here it is from Ninja forum:


Quoting 
This is the NT default sample crossover strategy with a simple Position Size algorithm, I use 2 type of Position Size, Fix percent and Kelly, please comment on it, remember be kind it’s free.

Maybe we can add some more Position Size method. If any want to jump in and help is welcome.

Possible enhancements: made the Position Algorithm a function to be call from any strategy. Add some scaling feature, etc.


We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Attached Files
Elite Membership required to download: MACrossWMonMan.zip
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #14 (permalink)
 MXASJ 
Asia
 
Experience: Beginner
Platform: NinjaTrader, TOS
Posts: 796 since Jun 2009
Thanks Given: 109
Thanks Received: 800

Would you really want a position size algo within a strategy? I could see its use when examining the best mix for a portfolio of strategies with known Sharpe ratios, etc... but then you would be reinventing MPT, VaR, etc.

Also... when one's $100K account becomes a $200K account, would you trade double the size or park that $100K profit where you would get the risk-free rate instead?

Where does one cross the boundary between trade risk management (a single bet) and portfolio management (cumulative results of prior bets combined with risk-managing future bets)?

Reply With Quote
  #15 (permalink)
 Laserdan 
North Carolina
 
Experience: Beginner
Platform: Ninja Trader
Broker: Ninja Trader Broker / Continuum
Trading: ES
Posts: 57 since Jun 2009
Thanks Given: 4
Thanks Received: 57

What i plan to do is divide my account up into sections...Futures, Stocks and Forex. Trade multiple Strats at the same time. So lets say I want to trade $50,000 in each of those 3 categories.

I want to start a strategy and tell it that I have $50,000 to start with. Then lets say i run 2 strats on two different instuments: Oil with 1% risk and ES with 1.5% risk.

I think the Volitility Position sizing would be very useful.

I will work on it and share what i come up with. If there is anyhing out there that already does this and I am reinventing the wheel, let me know.

Either way, I will work on it and share my code with the group

Follow me on Twitter Started this thread Reply With Quote
Thanked by:
  #16 (permalink)
 MXASJ 
Asia
 
Experience: Beginner
Platform: NinjaTrader, TOS
Posts: 796 since Jun 2009
Thanks Given: 109
Thanks Received: 800

If you consider each strat to be an asset with a known standard deviation, Sharpe ratio, etc and what you are looking to do is work out an optimal position size for each asset in a basket of assets whose correllations are known or can be calculated, you are looking at Modern Portfolio Theory (MPT) by Markowitz. Your asset mix should land you on a point on the efficient frontier where you have the optimal risk/reward ratio. Google MPT&Markowitz and see if that is what you are looking for.

Excel might be a better application for building the model, with data on the strats coming from Ninja.

I haven't looked for it yet but if you can calculate correlation of a strat against, say, the SPX, that is handy for building an MPT-based basket. Metastock does that well.

Note MPT and several other theories have been hit over the past year because they rely on an assumed Guassian distribution of returns. Fat tail/black swan events are the enemy of Gaussian assumptions.

I've got a gazzilion books on this stuff so if you have a question fire away. If I don't know it I know where to look it up. Also, if anyone spots an error in my statements don't be shy and please do point it out.

Reply With Quote
Thanked by:
  #17 (permalink)
 
caprica's Avatar
 caprica 
USA
 
Experience: Master
Platform: NinjaTrader
Posts: 155 since Jul 2009
Thanks Given: 45
Thanks Received: 114

I just struck gold with this thread!!!! Finally, some people that pay attention to the important things in trading! Hello friends!!


Laserdan View Post
I am reading Tharp's book and am really interested in position sizing.
I am keenly interested in the Percent Volatility Model he presnts in his book Trade your way to financial freedom

Laserdan, a big thanks for starting this fantastic thread! Are you or anyone else using Van Tharp's SQN or max expectancy in your ninja strategies? I posted the code I have here earlier today. I do find the SQN the most valuable but the max expectancy can provide insight but is much harder to generate useful results with if you do not have a large data set.


MXASJ View Post
Here you go. A JPEG and a Excel spreadsheet. Top part is based on how much you are prepared to risk per trade (2% of equity in this case), what the 14 period ATR is for the timeframe you are trading, and what your stop loss point is as ATR. It looks at margin as well and gives you the lower number of the two (contracts tradeble under stop loss rules vs. margin rules).

I've added a Kelly formula underneath. Please check the math on that first!

Critique it, change it, and post it back if you find it useful.

Mxasj, great spreadsheet my man! I actually found this thread because I was going to post a position sizing spreadsheet and thought I better search first. Your spreadsheet is far superior.

I'm not keenly familiar with Kelly but it's a risk model is it not? From a brief search on the internets it would seem the Kelly model is similar to max expectancy, what is your interpretation of it and how do you use it in your strategies?


Prtester View Post
Some time ago i post some example in the NT Forum, but don't develop any further, if someone interested, we can make it here.

Position Size Algorithm - [AUTOLINK]NinjaTrader[/AUTOLINK] Support Forum

Prtester, I am always interested in furthering money management capabilities inside of an ATS. I see you are also using Kelly ratio. Do you guys have a NT "Type" to optimize on Kelly? I'd like to compare it to Van Tharp's max expectancy. Prtester, I use scaling a great deal in my strategies and I'd like to know what your thoughts were for using the Kelly ratio. What was your overview of how it would work (nevermind the technical code to make it work).

Reply With Quote
Thanked by:
  #18 (permalink)
 
caprica's Avatar
 caprica 
USA
 
Experience: Master
Platform: NinjaTrader
Posts: 155 since Jul 2009
Thanks Given: 45
Thanks Received: 114

I found this about Kelly Criterion ratio:
Money Management Using the Kelly Criterion

So the principal is useful directly to position sizing much more so than expectancy. Now I just need to see about getting it inside of Ninja, am hoping someone has done this work already.

I took one of my systems with about 120 trades, a 65% win ratio and a w/l of 1.3 and the ratio came back as 0.38. So I am not sure what practical use this number is really telling me at this point because I do not risk more than 2% per trade.

Maybe you seasoned Kelly guys can help me understand it more. I am always looking for new methods of refining strategies to make them more efficient.

Reply With Quote
Thanked by:
  #19 (permalink)
 TheRumpledOne 
Tucson, AZ
 
Posts: 413 since Aug 2009

TRADING IS SIMPLE:

* Price either goes up or down.
* No one knows what will happen next.
* Keep losses small and let winners run.
* POSITION SIZE = RISK / STOP LOSS
* The reason you entered has no bearing on the outcome of your trade.
* You can control the size of your loss (skill) but you can't control the size of your win (luck).
* You need to know when to pick up your chips and cash them in.

Do not make things complicated.

Account Balance = $1,000

Maximum Risk = 2% * Account Balance

Maximum Risk = 2% * $1,000 = $20

Example:

If you want to buy a stock and your risk is $20 with a stop loss of $0.20 per share, then you can trade 100 shares.

POSITION SIZE = RISK / STOP LOSS.

POSITION SIZE = $20 / $0.20 = 100

Simple.

Reply With Quote
  #20 (permalink)
vio1965
Kharkov
 
Posts: 3 since Jul 2011
Thanks Given: 0
Thanks Received: 2


Hi , is there such TOS code (*.ts) or so to be embedded in TOS??? if yes please send it URL...

Reply With Quote
Thanked by:




Last Updated on July 8, 2011


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts