NexusFi: Find Your Edge


Home Menu

 





Position Sizing by Van Tharp


Discussion in Psychology and Money Management

Updated
      Top Posters
    1. looks_one Laserdan with 6 posts (7 thanks)
    2. looks_two MXASJ with 6 posts (21 thanks)
    3. looks_3 Big Mike with 3 posts (5 thanks)
    4. looks_4 caprica 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,749 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

  #1 (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

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


Here is an excerpt from the book:
Quoting 
MODEL 4: THE PERCENT VOLATILITY MODEL
Volatility refers to the amount of daily price movement of the underlying instrument over an arbitrary period of time. It’s a direct measurement of the price change that you are likely to be exposed to-for or against you-in any given position. If you equate the volatility of each position that you take, by making it a fixed percentage of your equity, then you are basically equalizing the possible market fluctuations of each portfolio element to which you are exposing yourself in the immediate future.

Volatility, in most cases, simply is the difference between the
high and the low of the day. If IBM varies between 141 and 143%
then its volatility is 2.5 points, However, using an average true range takes into account any gap openings. Thus, if IBM closed at


139 yesterday, but varied between 141 and 143% today, you’d need

to add in the 2 points in the gap opening to determine the true
range. Thus, today’s true ranges is between 139 and 143’&or 4%
points. This is basically Wells Wilder’s average true range calculation
as shown in the definitions~at the end of the book.
Here’s how a percent volatility calculation might~work for
position sizing. Suppose that you have $50,000 in your account and
you want to buy gold. Let’s say that gold is at $400 per ounce and
during the last 10 days the daily range is $3. We will use a IO-day
simple moving average of the average true range as our measure of
volatility. How many gold contracts can we buy?
Since the daily range is $3 and a point is worth $100 (i.e., the
contract is for 100 ounces), that gives the daily volatility a value of
$300 per gold contract. Let’s say
that we are going to allow volatility



to be a maximum of 2 percent of our equity. Two percent of

$50,000 is $1,000. If we divide our $300 per contract fluctuation into



our allowable limit of $1,000, we get 3.3 contracts. Thus, our position-

sizing model, based on volatility, would allow us to purchase



3 contracts.




What i was hoping that someone would write this up in code for the community to use in their strategies.

Follow me on Twitter Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
How to apply profiles
Traders Hideout
REcommedations for programming help
Sierra Chart
ZombieSqueeze
Platforms and Indicators
Trade idea based off three indicators.
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
21 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #2 (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,603

Nice post. I moved to Money Management section. I will come back to this post as soon as I have some time, I am actually working on money management scenarios right now in Ninja (backtesting).

Mike

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
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #3 (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


thanks mike...I thought i posted it in the correct forum, but I guess it belongs here.

As for position sizing, it is the most important thing about makin money!

Hopefully people will share their posiion sizing algos, or if they dont have one, then lets develop one as a group.

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

I've got a spreadsheet that looks at 14 day ATR, equity dedicated to a particular instrument, and instrument tick size. It then calculates your position size (# contracts) based on the time frame you are trading.

Let me clean it up and I'll post it here later today.

Reply With Quote
Thanked by:
  #5 (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,603

Well, I spent some time trying to code up the average true range of the last three days, and then look at the range for the current day.

What I did was use the CurrentDayOHL().High and .Low dataseries and then save the previous values and average them together to get a three day average range.

Then I measured the Opening price of today vs the current price, to see how much range we've moved right "now". I also tried measuring against how much we've moved higher vs. how high we normally move to gauge the "room" left in a move, and how much we've moved lower.

I must say, I failed. The code just wasn't working. I believe it is because the strategy I am using it on is a multi-time frame strategy and also only trades certain hours of the day. Having multi-time frame made the DataSeries variables much more complex, having to rely on CurrentBar and bars.SessionBreak etc. Then having it only trade certain hours of the day further complicated things, because there were gaps in the data from the hours it wasn't trading.

So. I am hoping someone else will step up with their method.

I am using Zen Fire, so for the day range I considered using a 1440 minute bar but later changed it to 60 minute because of problems I was experiencing with CurrentDayOHL().

Maybe someone can come at this a different direction. I would like to employ these types of risk assessments in my rule book.

Mike

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
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #6 (permalink)
 MXASJ 
Asia
 
Experience: Beginner
Platform: NinjaTrader, TOS
Posts: 796 since Jun 2009
Thanks Given: 109
Thanks Received: 800

I owe this thread a spreadsheet which I'll post later today. Been busy learning Ninja Script . Also adding a Kelly formula to the spreadsheet.

FWIW I look at the ATR and put it manually into the spreadsheet every few weeks or whenever I think there has been a important change in volatility, and for the hours I trade (2am to 11:30am EST) there are two distinct ranges... volatility increases significantly at 0930am EST (duh!). I've been using a mean of my entire trading session and get stopped out more than I like during NYSE mornings.

Mike if you are calculating rolling daily ATR and trading cash hours, perhaps you need to only use futures data from cash hours for the ATR calculation? I.E. the gaps are a part of how much more "move" is left in the move. Just a thought as I work on my first coffee of the day...

Reply With Quote
Thanked by:
  #7 (permalink)
 MXASJ 
Asia
 
Experience: Beginner
Platform: NinjaTrader, TOS
Posts: 796 since Jun 2009
Thanks Given: 109
Thanks Received: 800

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.

Attached Thumbnails
Click image for larger version

Name:	PositionSize.JPG
Views:	891
Size:	82.9 KB
ID:	694  
Attached Files
Elite Membership required to download: PositionSize.xlsx
Reply With Quote
  #8 (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

Thank you

Now if we can get this into Ninja Trader to auto check acct balance...

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

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

The one thing I'm looking at is running different strats from 0200-0930 and 0930-1130 as the ATR changes from about 0.9 to about 2.0... so in theory I'm trading smaller size and with wider stops during the NYSE morning.

Otherwise that's a spreadsheet I don't need to look at too often unless there has been a significant change in my account equity or in market volatility.

Reply With Quote
Thanked by:
  #10 (permalink)
 Prtester 
SE-Asia
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Amp
Trading: ES
Posts: 151 since Jun 2009
Thanks Given: 66
Thanks Received: 124


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

Reply With Quote




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