NexusFi: Find Your Edge


Home Menu

 





Elder's MACD-H divergence SCAN


Discussion in ThinkOrSwim

Updated
      Top Posters
    1. looks_one ositokillao with 5 posts (0 thanks)
    2. looks_two growex with 1 posts (0 thanks)
    3. looks_3 DaveWave with 1 posts (0 thanks)
    4. looks_4 Snoopy economist with 1 posts (0 thanks)
    1. trending_up 10,482 views
    2. thumb_up 0 thanks given
    3. group 6 followers
    1. forum 8 posts
    2. attach_file 0 attachments




 
Search this Thread

Elder's MACD-H divergence SCAN

  #1 (permalink)
 ositokillao 
Miami FL/USA
 
Experience: Beginner
Platform: TOS
Trading: stocks
Posts: 21 since Feb 2015
Thanks Given: 0
Thanks Received: 0

Anybody knows if there is a TOS version?

Elder.com: Education for Intelligent Traders

Thanks.

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
MC PL editor upgrade
MultiCharts
Increase in trading performance by 75%
The Elite Circle
Exit Strategy
NinjaTrader
Bigger Wins or Fewer Losses?
Traders Hideout
Better Renko Gaps
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
33 thanks
Tao te Trade: way of the WLD
24 thanks
My NQ Trading Journal
14 thanks
HumbleTraders next chapter
11 thanks
GFIs1 1 DAX trade per day journal
11 thanks
  #2 (permalink)
 ositokillao 
Miami FL/USA
 
Experience: Beginner
Platform: TOS
Trading: stocks
Posts: 21 since Feb 2015
Thanks Given: 0
Thanks Received: 0

Anybody has anything semi useful for this?

He describes his scan as semi automatic because it detects the first high/low of the MACD - H , the crossover through the zero line and the beginning of the third a final MACD-H value

Started this thread Reply With Quote
  #3 (permalink)
 ositokillao 
Miami FL/USA
 
Experience: Beginner
Platform: TOS
Trading: stocks
Posts: 21 since Feb 2015
Thanks Given: 0
Thanks Received: 0


for example....I found this:

Simple divergence scans can be created by selecting (somewhat arbitrarily) a time duration (5 days for example) and seeing if prices have increased by more than a given percentage while the associated indicator has decreased by a different given percentage. Here's a sample scan that uses that technique:

[type = stock] and [close > 1.0] and [volume > 40000] and [close > 5 days ago close * 1.025] and [[[macd line(12,26,9) - 5 days ago macd line(12,26,9)] / AbsVal(5 days ago macd line(12,26,9))] < -0.08 ]

In this example, the price must have increased by at least 2.5% over the past five days, while the MACD value must have decreased by at least 8%. (Note: The advanced scan interface must be used because a function of a function (i.e., AbsVal of the MACD) is needed.)

While this technique is easy to program into a scan engine, its results are hit-and-miss. Many of the charts returned by this kind of scan are not really experiencing a negative divergence. A visual review of all stocks returned by this kind of scan is a necessity.





Can anybody transcode this to ThinkorSwim?

thanks

Started this thread Reply With Quote
  #4 (permalink)
 growex 
Trubchevsk
 
Experience: Beginner
Platform: tos
Trading: stocks
Posts: 61 since May 2011
Thanks Given: 40
Thanks Received: 79


ositokillao View Post
for example....I found this:

Simple divergence scans can be created by selecting (somewhat arbitrarily) a time duration (5 days for example) and seeing if prices have increased by more than a given percentage while the associated indicator has decreased by a different given percentage. Here's a sample scan that uses that technique:

[type = stock] and [close > 1.0] and [volume > 40000] and [close > 5 days ago close * 1.025] and [[[macd line(12,26,9) - 5 days ago macd line(12,26,9)] / AbsVal(5 days ago macd line(12,26,9))] < -0.08 ]

In this example, the price must have increased by at least 2.5% over the past five days, while the MACD value must have decreased by at least 8%. (Note: The advanced scan interface must be used because a function of a function (i.e., AbsVal of the MACD) is needed.)

While this technique is easy to program into a scan engine, its results are hit-and-miss. Many of the charts returned by this kind of scan are not really experiencing a negative divergence. A visual review of all stocks returned by this kind of scan is a necessity.





Can anybody transcode this to ThinkorSwim?

thanks


here's scan query

 
Code
                            
plot cond volume 40000 and close > (close[5] * 1.025) and (MACD(12269).value  MACD(12269).value[5]) / AbsValue(MACD(12269).value[5]) < -0.08

Follow me on Twitter Reply With Quote
  #5 (permalink)
 ositokillao 
Miami FL/USA
 
Experience: Beginner
Platform: TOS
Trading: stocks
Posts: 21 since Feb 2015
Thanks Given: 0
Thanks Received: 0


growex View Post
here's scan query

 
Code
                            
plot cond volume 40000 and close > (close[5] * 1.025) and (MACD(12269).value  MACD(12269).value[5]) / AbsValue(MACD(12269).value[5]) < -0.08

thanks, not getting good results though....

Started this thread Reply With Quote
  #6 (permalink)
 
quantismo's Avatar
 quantismo 
Waco TX.
 
Experience: Advanced
Platform: retired ...maybe
Trading: anything with the slightest edge..
Posts: 242 since Jul 2011
Thanks Given: 335
Thanks Received: 176

The only TOS divergence indicator I know of that has divergence is the Knoxville divergence which can be found in the elite download section here if you do a search. I don't know if you will find much use for it though as doesn't draw rays it draws arrows because TOS cant be coded to draw rays as far as I have seen.

Quantismo

Reply With Quote
  #7 (permalink)
Snoopy economist
Manchester NH/USA
 
Posts: 1 since Aug 2015
Thanks Given: 0
Thanks Received: 0


growex View Post
here's scan query

 
Code
                            
plot cond volume 40000 and close > (close[5] * 1.025) and (MACD(12269).value  MACD(12269).value[5]) / AbsValue(MACD(12269).value[5]) < -0.08



growex: That scan works exactly as specified - the problem is that the specification requires to compare MACD and price on specific bars which is in itself useless - but your code works great.

Question: Can you create code to identify peaks and troughs and make comparisons with respect to them?

Reply With Quote
  #8 (permalink)
 ositokillao 
Miami FL/USA
 
Experience: Beginner
Platform: TOS
Trading: stocks
Posts: 21 since Feb 2015
Thanks Given: 0
Thanks Received: 0

I wanted to resurrect my thread so that may be somebody can help me out with this request...

is it possible to create a scan that indentifies instruments in a downtrend forming a lower high and macd histogram forming a higher high?



of course, also for reverse bullish divergences which would be:

price: higher low
oscillator: lower low


Started this thread Reply With Quote
  #9 (permalink)
DaveWave
New york, NY/USA
 
Posts: 4 since Sep 2014
Thanks Given: 0
Thanks Received: 0

This web site is selling the indicators you are looking for, a bit pricy but perhaps someone can look at the description and code it themselves. I have some RSI and MACD divergence code if it can help?

@ patternsmart .com

Reply With Quote




Last Updated on February 7, 2016


© 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