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


I figured out a way to combine all my divergence indicators into one single study. The new Multi-divergence script uses slopes of linear regression lines just like in the new MACD divergence indicator. This script supersedes all the other divergence scripts. The difference is now it can perform a regression on any one study of your choice from a list of ToS indicators. The indicators currently supported for divergence analysis are:

MACD, RSI, CCI, Momentum, Moneyflow, On Balance Volume, Rate of Change, Stochastic Momentum Index, Ultimate Oscillator, Volume Flow Indicator, Volume Oscillator, Volume Rate of Change, Volume-Weighted MACD, Williams Percent-R, and Woodie’s CCI

(Note that it doesn’t scan all of these for divergence at once. Just the one indicator you select. If you want to have RSI and MACD at the same time for example, you put the script on your chart twice and select the appropriate indicator for each one separately.)

If there is another built-in ToS indicator you want to have available for divergence analysis, let me know and I can add it in future updates. You can use the Multi-divergence indicator on real time charts and in scans of watch lists, and I put in alert logic so it can ping you when a divergence occurs.

This indicator is for blog donors only.  You can find it on my google site under Released Thinkscript Studies down in the Donors Only section. If you already donated in the past you can use your password to access it. If you want to become a donor (or throw me some more coin) you can do so by clicking the Donate button:

As always, if you are a DIY’er, feel free to ask questions in the comments and I’ll help answer.

Tags: , , , ,

45 Responses to “Multi-Divergence Indicator for Think or Swim: MACD, RSI, CCI, On Balance Volume and many more”

  1. RSI Divergence Indicator for Think or Swim | Read the Prospectus Says:

    […] This indicator has been updated!  See the new post here. […]

  2. UPDATE: MACD Divergence Indicator for Think or Swim | Read the Prospectus Says:

    […] This indicator has been updated!  See the new post here. […]

  3. CCI Divergence Indicator for Think or Swim | Read the Prospectus Says:

    […] This indicator has been updated!  See the new post here. […]

  4. SpyderCrusher Says:

    Hello Prospectus!

    Long time no talk, but I remember you from iBC blog days.

    I have some questions I would love to ask you, and was hoping you could reply via email so we could set up a time to chat.

    Thanks and look forward to talking,


  5. Ramesh Says:

    Need your inputs / clarification on this :
    On Intraday chart, I have the Sell arrow ( as well as buy arrow) painted a few bars earlier – disappear if conditions change:
    The arrow is painted as

    The arrow is based on close < open and Moving average.
    If the close is above open, all the earlier arrows in the intraday disappear.
    How can I make sure that the arrow once painted remains in tact on the intraday chart ?

    thanks for the clarification and help.


  6. Prospectus Says:

    Send me your code and I’ll take a look: readtheprospectus at gmail


  7. Sean Says:

    Hi Prospectus,

    I have some questions regarding some data that I would like to have coded. Please email me, so that we can discuss if it is possible and if so, what is your fee? Thank you.

  8. John Says:

    I cannot extract this study. How do I extract this study? It comes up in windows media player.

  9. Prospectus Says:

    You can open the .ts file with any text editor, or you can import it into ToS directly, following this guide:


  10. Cee Says:

    I would like to get the file called Multi-Divergence Indicator for Think or Swim: MACD, RSI, CCI, On Balance Volume and many more

    However I don’t know how to get Correspondence from you on making a donation and getting a password for the file

    My email is ( I’m interested in the Divergence Script as well as the audible Alert code you mentioned.

    I would love to hear from you.


  11. Armando Says:

    Greetings Prospectus. I have just loaded up your Multi-Divergence Indicator for Think or Swim. I added a single indicator (CCI) and selected that in your drop down list. While looking at a chart there are so many arrows. Could you explain what the different arrows indicate? Some are small, some bigger. Do all the arrows only apply to the selected indicator? Do I need to turn something off? Thanks, your help is appreciated. Thanks for all your great work!

  12. Prospectus Says:

    These all apply to the same one indicator you selected. The bigger arrows show a long term divergence, while the smaller arrows show a short term divergence. The up arrows are bullish divergence, and down arrows are bearish divergence. If you don’t want to use two different time frames then you can hide one of them, or set them to the same number. You can also change the plotted symbol to a dot if you don’t want arrows.

  13. ns Says:

    I have donated but did not receive a password for the Multi-Divergence Indicator.

    My email is


  14. Prospectus Says:

    I just sent it to you. Thanks for supporting the site!


  15. Wayne Roberts Says:

    Do you also create custom alerts for non-coders such as myself, or could you refer someone. In Forex I would like to receive an email alert whenever two specified EMAs crossed over – by a specified amount of pips or greater. Ideally this would happen as it occurred – prior to that candle being completed. Would want to use the alert on multiple pairs simultaneously. Is this Possible?

  16. Prospectus Says:

    It might be possible. I haven’t had time to look into it though.

  17. Trading Neo (@TradingNeo) Says:

    Thank you very much. I just followed you on Twitter. What I have read so far has proved to be very very helpful for a newbie like me, trying to make life easier with my own trading… I wonder if one can build on your MACrossover_w_alerts and create an alert for a coiling pattern? or even scan for one?

  18. john Says:

    I just gave a donation but didn’t receive a password – perhaps it will arrive soon. Can’t wait to try it out.

  19. john Says:

    Please let me know the password.


  20. Prospectus Says:

    Just sent it to you


  21. Paul Birdsall Says:

    Hi Prospectus,
    I just donated, downloaded and installed your indicator. I get a notification window pop-up top left telling me a signal has been detected – but no arrows appear. nothing changes on the chart at all for some reason. Show studies is selected.

  22. Prospectus Says:

    Is it still not working after market open?


  23. Paul Birdsall Says:

    Since market opened, same result – no arrows

  24. Prospectus Says:

    I’m on the road today and tomorrow but I can look at it on Sunday. Send me a screenshot of what you are looking at.


  25. Paul Says:

    I can send screenshot tomorrow when markets are open.

  26. Paul Says:

  27. Paul Says:

    Its applied to the 4H, 1H, 15M, 5M and 1 M charts (EUR/USD)

  28. Prospectus Says:

    Are you running it in thermo mode? That may be an issue

  29. Paul Says:

    It is not running in thermo Mode

  30. Prospectus Says:

    Ok, I’ll try to reproduce tomorrow. It’s working fine on my mobile trader app for those symbols.

  31. Paul Says:

    Hi Prospectus, did you manage to reproduce the issue I’m having?

  32. Multi-Divergence Scan for Think or Swim: MACD, RSI, CCI Divergence in Your Stock Scans | Read the Prospectus Says:

    […] my Multi-Divergence indicator, there is logic used that breaks the study filter when you try to use it in a scan. So I […]

  33. Tommy Says:

    I just made a donation, please send me the password.

  34. Sudeep Das Says:

    I tried the divergence using MACD, CCI and RSI but I am getting too many false signals!
    Any way that the signal quality could be improved?

  35. Prospectus Says:

    The divergence isn’t an entry signal. It’s only an indicator of a certain condition being present (I.e. The divergence of MACD and price). Not every divergence leads to a reversal. Some divergences resolve back in the direction of the trend. You need to have some other criteria that you define to enter a trade. I just use it to give me context on the chart. I don’t buy or sell based on it alone.

    That said, I’m going to change the divergence indicator output from a single arrow to a numeric value. Then you could see if a divergence is large or small which would probably be more helpful. You’d still need some criteria to decide when to actually enter a trade.


  36. Sudeep Das Says:

    Thats a good idea! I didnt think about the degree of divergence. Is the parameter present in the script so I can tinker with it? What values would you regard as extremely high divergence?..Thanks!

  37. Jeff Says:

    do you have a youtube video on how this indicator works? I am using macd for part of my strategy and would be very interested in seeing how this would function. thanks

  38. Example RSI Divergence Trade Setup: $TSLA (Tesla Motors Inc.) | Read the Prospectus Says:

    […] in a simple and repeatable way.  I have said before that divergence indicators (like my own Multidivergence Indicator) are not good trade signals by themselves. What they are good for is context.  You will still […]

  39. Hemanth Says:

    I have donated and haven’t received a password for the Multi-Divergence Indicator.

  40. Prospectus Says:

    Check your email. Just sent it


  41. Hemanth Says:

    Thanks received it.

  42. Sean Says:

    Hi there …I Definitely want your Multi Divergence Indicator. Please send me a note where I can donate.

  43. Prospectus Says:

    Sent you an email


  44. JD Says:

    I am not seeing arrows – I see a histogram? How do I use the multi divergence indicator? Plot them over each other as lower studies? The up/down lines overlap quite a bit …

  45. Update: Multi-Divergence Indicator v2 for Think or Swim (MACD, RSI, CCI, On Balance Volume and many more) | Read the Prospectus Says:

    […] 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 […]

Leave a Reply

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

You are commenting using your 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: