OPEN-SOURCE SCRIPT

4C NYSE Market Breadth Ratio

Updated
The NYSE Market Breadth Ratio is considered by some to be the “king” of market internals. It lets you know instantly how strong current buying or selling pressure is in the broad market, to eliminate guessing or opinion.

This indicator plots the Market Breadth Ratio values for the NYSE and the NASD exchanges in real time.
It also plots the NYSE Market Breadth Ratio in a histogram plot for visual reference.
The indicator dynamically changes colors between green and red depending on whether breadth is currently positive or negative.

This indicator divides the 'Up-Volume' ("UVOL") by 'Down-Volume' ("DVOL"), for each exchange.

It can be added to any chart, but is incredibly useful when added to other sources of market internals like the NYSE Advancers/Decliners Difference (ticker ADD) or with the NYSE UVOL / DVOL Difference (ticker VOLD ).

Credit goes to author=auron9000 as the bulk of this code was from their Breadth Ratio Bubbles indicator.
---> The changes made to their indicator include: bug fixes where the values werent properly updating; fixed indicator to be a separate plot (not chart overlay), and added the histogram plot.
Release Notes
***UPDATE 07/06/22***
Added a third table that dynamically plots the value of the NYSE Advancers minus Decliners (ticker 'ADD').
The 4C NYSE Market Breadth Ratio indicator is very useful when used with the ADD chart, and now makes it easier to see the ADD value alongside the Breadth Ratio values.
Release Notes
Fixed script - it recently (randomly) started to call on the incorrect "DVOL" ticker, giving an incorrect NYSE Breadth Ratio, and the column plot for the NYSE Breadth was also incorrect.
Changed to call on the ticker "USI:DVOL"
Release Notes
11/10/22 Updates
1) Moved the Labels (table) to the right of the indicator, as the old version the labels were often overlapping and covering up the indicator histogram plot.
2) Changed the Label sizing to automatic. The previous text was set to large and was often overlapping the and covering up the indicator histogram plot.
3) Added a zeroline horizontal line plot
Release Notes
11/16/22
Update - Gave the ability to adjust the text size in the Table Cells
ADDbreadthbreadthratioBreadth IndicatorsinternalsmarketmarketbreadthmarketinternalsnyseVOLD

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