NexusFi: Find Your Edge


Home Menu

 





Trading Divergence


Discussion in Traders Hideout

Updated
      Top Posters
    1. looks_one Fat Tails with 8 posts (3 thanks)
    2. looks_two shodson with 3 posts (1 thanks)
    3. looks_3 mahlonhersh with 3 posts (1 thanks)
    4. looks_4 ZTR with 2 posts (0 thanks)
      Best Posters
    1. looks_one max-td with 1 thanks per post
    2. looks_two Fat Tails with 0.4 thanks per post
    3. looks_3 shodson with 0.3 thanks per post
    4. looks_4 mahlonhersh with 0.3 thanks per post
    1. trending_up 11,458 views
    2. thumb_up 7 thanks given
    3. group 3 followers
    1. forum 17 posts
    2. attach_file 12 attachments




 
Search this Thread

Trading Divergence

  #1 (permalink)
 
shodson's Avatar
 shodson 
OC, California, USA
Quantoholic
 
Experience: Advanced
Platform: IB/TWS, NinjaTrader, ToS
Broker: IB, ToS, Kinetick
Trading: stocks, options, futures, VIX
Posts: 1,976 since Jun 2009
Thanks Given: 533
Thanks Received: 3,709

Some time ago I started working with a couple of guys that wanted a strategy to enter a trade when we get MACD divergence off a Bollinger Band bounce. I annotated some charts to help clarify what they were looking for. See attached.

The trick is when to take the 1st peak, and when to start looking for a second but divergent peak in both data series. For example, in the MACD examples, after the first peak in the histogram, we decided to not start looking for a new but higher swing low in the MACD histogram unless the MACD unless we got at least 3 higher readings after the first peak. Some thought we should cross all the way above the zero line and then back below it before waiting for the 2nd swing lower,while others thought that a cross above the zero line should reset the search for a 2nd peak. Also, regarding price, it wasn't clear if we are comparing lower lows or lower closes.

So there is a lot of discretion in measuring divergence and how you read the 2 data series that you are comparing. These examples that I share are some of the challenges one has to consider.

Attached Thumbnails
Click image for larger version

Name:	macd-divergence.png
Views:	338
Size:	128.0 KB
ID:	12409   Click image for larger version

Name:	macd-divergence2.png
Views:	227
Size:	130.2 KB
ID:	12410  
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
REcommedations for programming help
Sierra Chart
NexusFi Journal Challenge - May 2024
Feedback and Announcements
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Exit Strategy
NinjaTrader
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
48 thanks
Just another trading journal: PA, Wyckoff & Trends
35 thanks
Tao te Trade: way of the WLD
26 thanks
Bigger Wins or Fewer Losses?
24 thanks
GFIs1 1 DAX trade per day journal
21 thanks
  #2 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102

Most trading systems based on divergences have a negative expectancy. The left chart is a good example. MACD produced a divergence, not because the trend slowed down, but because of the Baskerville effect: a moving average also barks if something drops out at the beginning of the period.

By pure luck price entered a consolidation and then continued its prior trend. Every short term consolidation of a trend produces a divergence, so you would not want to trade all of them.

The right chart shows that a trade entry based on MACD divergence came way too early. What about adding a filter that you will only take divergences after a trendline break ?

Reply With Quote
  #3 (permalink)
 
shodson's Avatar
 shodson 
OC, California, USA
Quantoholic
 
Experience: Advanced
Platform: IB/TWS, NinjaTrader, ToS
Broker: IB, ToS, Kinetick
Trading: stocks, options, futures, VIX
Posts: 1,976 since Jun 2009
Thanks Given: 533
Thanks Received: 3,709



Fat Tails View Post
Most trading systems based on divergences have a negative expectancy. The left chart is a good example. MACD produced a divergence, not because the trend slowed down, but because of the Baskerville effect: a moving average also barks if something drops out at the beginning of the period.

By pure luck price entered a consolidation and then continued its prior trend. Every short term consolidation of a trend produces a divergence, so you would not want to trade all of them.

The right chart shows that a trade entry based on MACD divergence came way too early. What about adding a filter that you will only take divergences after a trendline break ?

Which is why I think the requirement that the divergence occur happen off of a Bollinger band bounce potentially increases the success of reversal.

Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #4 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102

If you have a strong trend, this will be typically near a Bollinger Band. I have often observed that a trend weakens - i.e. reduces its slope - several times before it reverses. See daily chart of ES below.

Attached Thumbnails
Click image for larger version

Name:	Bollinger Band.jpg
Views:	275
Size:	107.7 KB
ID:	12411  
Reply With Quote
  #5 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102

Or let us have a look at price action of ES during the last hour:

Attached Thumbnails
Click image for larger version

Name:	ES 06-10 (5 Min)  29_04_2010 bis.jpg
Views:	225
Size:	102.0 KB
ID:	12412  
Reply With Quote
  #6 (permalink)
 
shodson's Avatar
 shodson 
OC, California, USA
Quantoholic
 
Experience: Advanced
Platform: IB/TWS, NinjaTrader, ToS
Broker: IB, ToS, Kinetick
Trading: stocks, options, futures, VIX
Posts: 1,976 since Jun 2009
Thanks Given: 533
Thanks Received: 3,709


Fat Tails View Post
If you have a strong trend, this will be typically near a Bollinger Band. I have often observed that a trend weakens - i.e. reduces its slope - several times before it reverses. See daily chart of ES below.

I attached an updated chart with notes...

Also, reversals often can have targets 2-6x larger than stops so you don't need to be right more than 50% of the time.

Attached Thumbnails
Click image for larger version

Name:	divergence-detection-algorithm-bollinger-band.jpg
Views:	221
Size:	171.2 KB
ID:	12413  
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #7 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102

Thank you for the comments. The chart also shows that markets are assymetric, fear and greed do not create the same feedback patterns. In the stock market topping patterns take longer time than bottoming patterns. It is not unusual to see double or triple tops, but rarely you will notice a double bottom with low volatility.

I agree that MACD signals work better with a zero line cross and when volatility is high, so it might give you an edge for stock index bottoms or commodity tops. These are U-class peaks and troughs and not similar to the moderate S-class peaks and troughs.

So to apply a MACD divergence indicator, you might first need to qualify the type of market. Apply it to a high volume climax move and it might work, apply it to a wedge, and you will get a quadruple divergence, which is a failed triple and failed double divergence.

The problem of the divergence is that it only measures the peak (trough) behaviour, but not the trendline side of the price action. If you have an ascending triangle, on the peakside it creates a divergence, on the trendline side it is a continuation pattern. How would you qualify this?



shodson View Post
I attached an updated chart with notes...

Also, reversals often can have targets 2-6x larger than stops so you don't need to be right more than 50% of the time.


Reply With Quote
  #8 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927

ok, here we go - i gonna transfer some posts over here!



max-td
Reply With Quote
Thanked by:
  #9 (permalink)
Richard
Dallas TX/USA
 
Posts: 153 since Jun 2009
Thanks Given: 33
Thanks Received: 284


Fat Tails View Post
Most trading systems based on divergences have a negative expectancy. The left chart is a good example. MACD produced a divergence, not because the trend slowed down, but because of the Baskerville effect: a moving average also barks if something drops out at the beginning of the period.

Hi there . Two things:
  1. A typical MACD is made of EMAs. Nothing "drops out" of an IIR filter.
  2. The Baskerville effect - Wikipedia, the free encyclopedia is related to psychological stress

Thanks.

Reply With Quote
Thanked by:
  #10 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


Hi Max,

if you transfer Richard's post as well, I could answer it here....

Below is a chart of ES during the last four hours. The MACD produced numerous divergences, as ES made four trendline breaks, while gradually moving higher. A divergence is just a slow down of price. If you want to know whether it is a valid pattern to initiate a countertrade, the better way is to scrap the indicator and just watch price and volume.

The chart also shows an indicator that serves as a trend filter. Green means up, so you would be very careful to enter short trades.

Attached Thumbnails
Click image for larger version

Name:	False Divergences.jpg
Views:	266
Size:	135.0 KB
ID:	12419  
Reply With Quote
Thanked by:




Last Updated on May 5, 2010


© 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