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!
版本注释
Minor update (bugfix?) to allow script to work if SPY is selected (either RTH or Extended)
sentiment

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明