Update: Multi-Divergence Indicator v2 for Think or Swim (MACD, RSI, CCI, On Balance Volume and many more)

I’ve made an update to the Multi-Divergence indicator. No more arrows! It’s now a lower histogram that gives you a picture of whether the divergence is increasing or decreasing, and also the size of it relative to all the other divergences on the chart. Here’s an example of it in action for $TSLA (Tesla Inc), along with a plot of Volume Weighted MACD for visualization:


The divergences now have a value between 0 and +/- 100. Zero means no divergence is present. A bearish divergence has a negative value while a bullish divergence has a positive value. The scale is determined by the widest divergence, whether bullish or bearish, on the current chart. In this case, the widest divergence came on Sept 15. Everything else is relative to that. If a new divergence comes along that is even larger, then the indicator will scale everything to the new max value.

You can also use this new study as-is in a scan. Just set up a study filter as described below:

Go to the scan tab in Think Desktop, and choose “Stock Hacker”.  Then you click “Add Study Filter” (First in screenshot below) then click the pencil to edit the default filter that is added (Second in screenshot):


Set the aggregation period at the top to whatever timeframe you are interested in. Then edit the default ADXCrossover() seen here under Condition Wizard:


Here’s an example of how to set the scan input, looking for bullish divergences of 30 or greater on the Volume Weighted MACD with a divergence length of 20:

scan input

You click in the upper left dropdown and choose “study”, then lookup Pro_MultiDivergence_v2 from the dropdown list. Then you can select the divergence (bulldiv or beardiv) from the Plot dropdown. Under inputs you choose the length and divergence indicator you want.

For a bullish scan: Choose “is greater than or equal to” and set the select condition dropdown at top right to “Value”, and enter your scan value as a positive number.

For a bearish scan: Choose “is less than or equal to” and set the select condition dropdown at top right to “Value”, and enter your scan value as a negative number.

This indicator is in the “Donors Only” section of my Google site under Released ThinkScript Studies. You can become a donor to the blog through PayPal here:

10 Responses to “Update: Multi-Divergence Indicator v2 for Think or Swim (MACD, RSI, CCI, On Balance Volume and many more)”

  1. Example Divergence Trade: Netflix (NASDAQ: NFLX) | Read the Prospectus Says:

    […] Trading, Think or Swim, Ninjascript and other Rocket Science « Update: Multi-Divergence Indicator v2 for Think or Swim (MACD, RSI, CCI, On Balance Volume and many&… […]

  2. Chris S. Says:

    Hi, I have a few questions about your Multi-Divergence Indicator v2.

    1) Does this indicator also use your new linear regression method of calculating divergences, or does it rely on swing points?

    2) I know enough Thinkscript to be dangerous. Will it be obvious in the code where you calc the separate divergences (CCI, RSI, etc.)?

    I’d like to use this indicator as a base for a larger set of signals I’m going to combine for entry/exit assist.

    Finally, 3) How much is the donation?

    Nice work on the indicators and the site overall.

    – Chris

  3. Prospectus Says:

    V2 uses regression, not swing points. If the code isn’t obvious I can help explain it. No minimum on the donation. Whatever it is worth to you.


  4. Chris S. Says:

    Donation sent. Thank you for the prompt reply!

  5. Prospectus Says:

    Sent, thank you


  6. Schuyler Says:

    Can this indicator show divergence from all studies simultaneously?

  7. Prospectus Says:

    I don’t have it set up that way but it could be done. I don’t know how useful it would be. You’d probably have a divergence almost all the time. You could add separate indicators for each divergence to see them simultaneously.


  8. robertsullivan1956 Says:

    I made a donation to give this indicator a try. I have downloaded the zip but need the pw. robertsullivan@yahoo.com

  9. Prospectus Says:

    Check your email


  10. Example Swing VWAP / RSI Divergence Trade: $AAPL | Read the Prospectus Says:

    […] a trade I entered in Apple about 2 weeks ago where I used the Swing VWAP and the RSI MultiDivergence […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: