OPEN-SOURCE SCRIPT

TIG's Market Internals Clouds Indicator v2.0

=================================
== GENERAL INTRODUCTION
=================================

If you find market internals inform your intraday trading decisions (SPX, ES futures, SPY or more generally) this may be helpful.

Currently available internals are:
- ADD
- TICK
- TRIN
- VIX
- VOLD

Also, you can display your favorite alternative market internal (or BTC, if you want?!) by entering the relevant ticker in the 'Custom' field


=================================
== NOTES
=================================

The default EMA lengths seem to work reasonably well for 1, 2, 3-minute timeframes (except for TICK - you may wish to apply a bit more smoothing to TICK to reduce the noise)

Of course; you can add this indicator to your chart multiple times, and display a different internal each time.

The default Text Color is set as a mid-grey, which is readable in both TV color schemes. I prefer dark mode, and so I change the text color to white. You can't see the scheme setting from within a script, unfortunately, so this can't be automated.


=================================
== EXPERIMENTAL FEATURE
=================================

As a free bonus, the indicator can display the 30-bar (default) Pearson Correlation Coefficient between the internal, and price action (based on the super-fast EMA, to give a bit of smoothing). This may give a clue as to whether or not the market is aligned with what the internal is doing, or if the market (today) is not correlated with the particular internal.

Very roughly speaking:
- 0.50 means that 50% of the price action can be explained by reference to the internal. This is about the same level of correlation between VIX and Actual Move
- 0.80 suggests pretty strong correlation

I don't know why (yet) but sometimes this works, and sometimes it doesn't display a sensible figure.


=================================
== QUESTIONS AND FEEDBACK
=================================

If you have any general questions about market internals, Google is your friend.

If you have any specific queries, bug reports, feature requests or general feedback about this indicator please leave a comment below, and I'll get back to you ASAP!
Release Notes
Minor update (bugfix?) to allow script to work if SPY is selected (either RTH or Extended)
sentiment

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer