TradeReign
Back to HomeEducation HubCompatibilityAboutDisclosures
thinkorswim Desktop

Up/Down Volume Ratio on thinkorswim NYSE Breadth and Single-Symbol Volume

The NYSE ratio describes where share volume is concentrated across the exchange. The rolling ratio describes activity on the current chart’s symbol. On an ES chart you can display both, but each label uses a different data source.

Quick Answer

For the Quad, divide the NYSE advancing-volume symbol $UVOL by the declining-volume symbol $DVOL at the same cash-session timestamp. For one stock or futures contract, divide volume on higher-close bars by volume on lower-close bars over a fixed lookback. Choose the study that answers your question before comparing readings.

Start 7-Day TrialInstall the NYSE breadth labelSet up the single-symbol ratioCheck the reading by hand

Add the NYSE up/down volume ratio to the Quad

In thinkorswim Desktop, open $UVOL and $DVOL in separate chart cells. Use the same five-minute time aggregation and cash-session date. Read both symbol values at the same interval. These are values from breadth symbols, so use each bar’s close. Summing their reported values over the session would repeatedly count volume already included.

To display the calculation on an ES, SPY, or other time chart, open Charts → Studies → Edit Studies → Create. Replace the starter text with the study below, name it NYSEUpDownRatio, and select OK. Add the saved study to the chart and apply it. Check the label during the NYSE cash session, when both input symbols are updating.

A reading above 1 favors advancing volume. Below 1 favors declining volume. At 0.50, advancing volume is half of declining volume. A label using the signed dominant-side convention can display that same reading as −2:1. VOLD in the ShadowTrader Quad expresses a share-volume difference and uses zero for balance.

declare upper;

def advShares = close(symbol = "$UVOL");
def decShares = close(symbol = "$DVOL");
def hasReading = !IsNaN(advShares) and !IsNaN(decShares) and decShares > 0;
def exchangeRatio = if hasReading then advShares / decShares else Double.NaN;

AddLabel(hasReading, "NYSE up/down: " + Round(exchangeRatio, 2),
    if exchangeRatio > 1 then Color.GREEN
    else if exchangeRatio < 1 then Color.RED
    else Color.GRAY);
AddLabel(!hasReading, "NYSE up/down: unavailable", Color.GRAY);

Check the chart label against the two input symbols

At A in the synthetic chart, 180 million advancing shares divided by 120 million declining shares gives 1.50. At B, 196 million divided by 224 million gives 0.875, which the label rounds to 0.88. Advancing share volume increased, but declining share volume grew faster. ES is higher at B while NYSE volume breadth weakened.

To verify a current label, open the two input charts and compare the same interval with the label’s chart. The label shows the latest bar reading. Use the data box on the two source charts for an earlier completed interval and divide the values yourself. A chart can label the start of a five-minute interval, while this example labels the close.

If either feed is unavailable, or the denominator is zero, leave the reading unavailable. If one chart stopped updating, the ratio can look valid even when the inputs are out of sync. Check each last update, session and delay separately. Use equivalent units for both inputs. A common scaling factor cancels in division.

ES price and the NYSE up/down volume ratio

Synthetic ES 5-minute candles. Times are bar closes in ET.

A at 10:05 ET marks ES at 6,001.50 and a 1.50 NYSE ratio. B at 10:35 ET marks ES at 6,003.25 and a ratio of 0.88 after rounding. The lower chart shows the ratio in gold and even breadth at 1.00 in gray. The example uses invented prices and volumes.

Calculate a rolling up/down volume ratio for one symbol

Make a second custom study named SymbolUpDownRatio. On a daily chart, the default lookback counts 20 daily bars. Each bar’s volume goes into the higher-close or lower-close bucket according to its close versus the preceding close. An unchanged close contributes to neither bucket. On a five-minute chart the same input means 20 five-minute bars.

For a hand check, set the lookback to 4 and use a completed window. Starting from a prior close of 100, suppose the next four closes are 101, 100, 100 and 102 on 900, 500, 200 and 600 shares. The buckets are 1,500 and 500. The 200-share flat bar is excluded. The ratio is 3.00. The latest still-forming bar can change the displayed label.

VolumeFlowIndicator uses a different calculation based on typical-price changes and a volatility cutoff. Use the rolling study below when you want the sum of higher-close volume divided by the sum of lower-close volume.

declare upper;

input lookback = 20;
def higherVolume = Sum(if close > close[1] then volume else 0, lookback);
def lowerVolume = Sum(if close < close[1] then volume else 0, lookback);
def missingBars = Sum(if IsNaN(close) or IsNaN(close[1]) or IsNaN(volume)
    then 1 else 0, lookback);
def hasReading = missingBars == 0 and lowerVolume > 0;
def symbolRatio = if hasReading then higherVolume / lowerVolume else Double.NaN;

AddLabel(hasReading, "Symbol up/down: " + Round(symbolRatio, 2),
    if symbolRatio > 1 then Color.GREEN
    else if symbolRatio < 1 then Color.RED
    else Color.GRAY);
AddLabel(!hasReading, "Symbol up/down: unavailable", Color.GRAY);
Sources

Official References

Platform details on this page were checked against these official resources.

Schwab’s thinkScript editor instructionsFind the custom study editor in Desktop.thinkScript closeRead the current chart or a specified symbol.thinkScript AddLabelVerify label placement and last-bar behavior.thinkScript SumVerify the number of chart bars in a rolling sum.Schwab’s Volume Flow IndicatorSee how its typical-price and cutoff inputs work.EminiMind’s thinkorswim breadth setupSee Tim Racette’s NYSE breadth symbols and display conventions.ShadowTrader’s Quad setupVerify the layout and the VOLD, ADD and TICK symbols.
Related Guides

Keep Building the Rule System

Set up the thinkorswim Quad

Arrange ES, TICK, ADD and VOLD before adding the ratio.

Set up the same ratio in TradingView

Match the exchange feed and completed timestamp on TradingView.

Compare NYSE breadth during an ES pullback

See how Tim Racette combines the ratio with price context.

FAQ

Common Questions

Which thinkorswim symbols give the NYSE up/down volume ratio?

Use the breadth-symbol closes of $UVOL for advancing share volume and $DVOL for declining share volume. Divide $UVOL by $DVOL for the same cash-session bar.

What does a thinkorswim up/down ratio of 0.50 mean?

With up volume in the numerator and down volume in the denominator, 0.50 means declining stocks account for twice as much volume as advancing stocks.

Why does the thinkorswim ratio label say unavailable?

Check for current data on both breadth symbols, your chart aggregation, the time of day and a positive denominator. On the rolling label, check that there are enough bars with volume and at least one lower-close bar with volume.

Is the up/down volume ratio the same as VOLD?

The ratio divides advancing volume by declining volume. VOLD as used in the ShadowTrader Quad subtracts declining volume from advancing volume. Equal volumes produce a ratio of 1 and a difference of 0.

Risk Disclosure

Futures trading contains substantial risk and is not suitable for every investor. TradeReign is a trading-discipline and rule-enforcement application. It does not provide trading advice, trade signals, investment recommendations, or performance guarantees.

TradeReign is not a broker-dealer, futures commission merchant, or investment advisor.

Futures trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Only risk capital - money that can be lost without jeopardizing financial security or lifestyle - should be used for trading. Past performance is not necessarily indicative of future results.