NexusFi: Find Your Edge


Home Menu

 





Van Tharp's Max Expectancy


Discussion in Psychology and Money Management

Updated
      Top Posters
    1. looks_one rickt with 7 posts (4 thanks)
    2. looks_two Big Mike with 4 posts (4 thanks)
    3. looks_3 verge with 3 posts (1 thanks)
    4. looks_4 caprica with 3 posts (16 thanks)
      Best Posters
    1. looks_one gordo with 5.5 thanks per post
    2. looks_two caprica with 5.3 thanks per post
    3. looks_3 Anagoge with 4 thanks per post
    4. looks_4 Big Mike with 1 thanks per post
    1. trending_up 26,674 views
    2. thumb_up 47 thanks given
    3. group 24 followers
    1. forum 31 posts
    2. attach_file 1 attachments




 
Search this Thread

Van Tharp's Max Expectancy

  #1 (permalink)
 
caprica's Avatar
 caprica 
USA
 
Experience: Master
Platform: NinjaTrader
Posts: 155 since Jul 2009
Thanks Given: 45
Thanks Received: 114

I just uploaded another NinjaTrader optimizer type max expectancy. The credit goes to Elliott Wave. Anagoge also helped.

It is here:


If you are not familiar with expectancy, here are few articles to whet your appetite:
Market Talk with Piranha: What is [AUTOLINK]Expectancy[/AUTOLINK]?

Advance Your Finance: The Art of Expectancy

Trading 101: [AUTOLINK]Expectancy[/AUTOLINK] - Trader Mike

Amazon.com: Trade Your Way to Financial Freedom (0639785305590): Van K. Tharp: Books

To quote a few key pieces of information:


Quoting 
So what is expectancy?

Expectancy is your profit percentage per win multiplied by your win rate minus your loss percentage per loss multiplied by your loss rate.

Expectancy tells you what you can expect to make (win or lose) for every dollar risked. Casinos make money because the expectancy of every one of their games is in their favor. Play long enough and you are expected to lose and they are expected to win because the “odds” are in their favor.


Quoting 
Example, you could have 99 losing trades, each costing you a dollar. Thus, you would be down $99. However, if you had one winning trade of $500, then you would have a net payoff of $401 ($500 less $99)—despite the fact that only one of your trades was a winner and 99% of your trades were losers.

It is my hope you will find this info valuable and can use it to further explore some better trade management, risk management and overall money management systems.

"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
MC PL editor upgrade
MultiCharts
How to apply profiles
Traders Hideout
Trade idea based off three indicators.
Traders Hideout
Increase in trading performance by 75%
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
34 thanks
Tao te Trade: way of the WLD
24 thanks
GFIs1 1 DAX trade per day journal
17 thanks
Vinny E-Mini & Algobox Review TRADE ROOM
13 thanks
My NQ Trading Journal
12 thanks
  #2 (permalink)
 
caprica's Avatar
 caprica 
USA
 
Experience: Master
Platform: NinjaTrader
Posts: 155 since Jul 2009
Thanks Given: 45
Thanks Received: 114

Here is a spreadsheet that can be used to calculate expectancy if you like to use Excel instead of Ninja.

Attached Files
Elite Membership required to download: expectancy.xls
Started this thread Reply With Quote
  #3 (permalink)
Anagoge
Missouri, USA
 
Posts: 2 since Jun 2009
Thanks Given: 3
Thanks Received: 1


I mentioned this in the NT forum thread concerning this, but it might be worth repeating here. In my opinion, expectancy is a useful bit of data to know about your trading system and evaluate risk/reward, but it is not a very good way to optimize a trading system. The reason is that the expectancy number ignores the number of trades. Expectancy will be higher for a system that averages $100 per trade but only trades once a week compared to a system that earns $50 per trade and trades every hour. For this reason, I'd definitely recommend SQN over expectancy for optimizing. An exception to this might be if you are optimizing a strategy that you only want to trade occasionally, and you are willing to invest your money in alternative strategies when this one isn't issuing signals. In that case, having a system with limited signals (but high expectancy) may not be a problem.

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


Anagoge View Post
I mentioned this in the NT forum thread concerning this, but it might be worth repeating here. In my opinion, expectancy is a useful bit of data to know about your trading system and evaluate risk/reward, but it is not a very good way to optimize a trading system. The reason is that the expectancy number ignores the number of trades. Expectancy will be higher for a system that averages $100 per trade but only trades once a week compared to a system that earns $50 per trade and trades every hour. For this reason, I'd definitely recommend SQN over expectancy for optimizing. An exception to this might be if you are optimizing a strategy that you only want to trade occasionally, and you are willing to invest your money in alternative strategies when this one isn't issuing signals. In that case, having a system with limited signals (but high expectancy) may not be a problem.

i wrote a custom formula that weighs the net profit, expectancy, and number of trades per day. it throws out (return double.NegativeInfinity) values that also have fewer than a certain number of trades per set/job.

i am really finding it quite useful. i like SQN as well but like expectancy better with my custom weighted formula.

still what you've said is absolutely true.

"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

Started this thread Reply With Quote
Thanked by:
  #5 (permalink)
rickt
ma
 
Posts: 9 since Oct 2009
Thanks Given: 0
Thanks Received: 4

I think that I like 'expectancy score' better because it also takes into account time. I found it at URC Trading - [AUTOLINK]Expectancy[/AUTOLINK] Score vs Sharpe Ratio and is expectancy * opportunity where expectancy = (aw*pw+al*pl)/|al| and opportunity = # trades * 365/studydays. A good explanation is provided at the link I gave.

Reply With Quote
  #6 (permalink)
 samurai 
CO
 
Experience: Intermediate
Platform: NinjaTrader
Posts: 29 since Sep 2009
Thanks Given: 228
Thanks Received: 45

rickt

Since Trade Your Way to Financial Freedom, Tharp has expanded on the concept of system quality by creating a variation of the Student's T-Test called System Quality Number (SQN).
SQN = SquareRoot(N) * (Avg Trade Result/Standard Deviation(Avg Trade Result))
Where:
N = # of Trades (Truncated at 100 -- this is Tharp's variation)
Avg Trade = another way to determine expectancy
This formula takes frequency (N), reliability (Standard Deviation of avg trade), and expectancy (Avg Trade) and produces an objective score of any system.

Tharp goes into more detail in his book, The Definitive Guide to Position Sizing.

I find SQN to be a much better measure of a system's overall performance than expectancy alone.

-Samurai

Reply With Quote
Thanked by:
  #7 (permalink)
rickt
ma
 
Posts: 9 since Oct 2009
Thanks Given: 0
Thanks Received: 4

I understand about SQN, but I think it is lacking because it does not take time into account. An investment that returns 10% in 2 days is better than an investment that returns 10% in more than 2 days.

Expectancy score is NOT the same as expectancy. It uses expectancy and then multiplies by opportunity, which is where time is factored in.

To my way of thinking, time is a critical element in any trading or investing strategy.

Reply With Quote
Thanked by:
  #8 (permalink)
 verge 
Cape Town, South Africa
 
Experience: Beginner
Platform: NinjaTrader
Broker: Zen-fire
Trading: EUR/USD
Posts: 41 since Aug 2009
Thanks Given: 22
Thanks Received: 12


rickt View Post
I think that I like 'expectancy score' better because it also takes into account time. I found it at URC Trading - [AUTOLINK]Expectancy[/AUTOLINK] Score vs Sharpe Ratio and is expectancy * opportunity where expectancy = (aw*pw+al*pl)/|al| and opportunity = # trades * 365/studydays. A good explanation is provided at the link I gave.


rickt

I agree with you - after reading the article at the link you posted.

Do you have code for the "expectancy score" that you can share?

Verge

Reply With Quote
  #9 (permalink)
rickt
ma
 
Posts: 9 since Oct 2009
Thanks Given: 0
Thanks Received: 4

Sorry - the only 'code' that I have it in is EXCEL. Maybe one of these days I will learn what it is you guys here use.

Reply With Quote
  #10 (permalink)
 verge 
Cape Town, South Africa
 
Experience: Beginner
Platform: NinjaTrader
Broker: Zen-fire
Trading: EUR/USD
Posts: 41 since Aug 2009
Thanks Given: 22
Thanks Received: 12



rickt View Post
Sorry - the only 'code' that I have it in is EXCEL. Maybe one of these days I will learn what it is you guys here use.


I had a look at the original thread started by Ellio Wave here :

Optimizer Type: Max. [AUTOLINK]Expectancy[/AUTOLINK] - [AUTOLINK]NinjaTrader[/AUTOLINK] Support Forum

He mentions early in the thread that he only got the "expectancy score" version working.

I now had a look in the Expectancy optimizer type. The following formula is used:
expectancyTemp = (aveWin * percentWin + aveLose * percentLose)/ Math.Abs(aveLose)

Note the devision by the absolute value of the losing trades - which may not be what everyone thinks it should be.



Reply With Quote
Thanked by:




Last Updated on January 22, 2015


© 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