TD

Market Sentiment

One 0–100 fear-and-greed score for the US stock market, built from seven components and read the same way on every chart.

What it shows

Market Sentiment on a daily S&P 500 chart: the score in its own pane coloured by zone, the zone lines at 25 and 75 with the neutral band, and the table on the price chart.
Market Sentiment on a daily S&P 500 chart: the score in its own pane coloured by zone, the zone lines at 25 and 75 with the neutral band, and the table on the price chart. Click to enlarge.

The indicator reads the mood of the US stock market as a single score from 0 (extreme fear) to 100 (extreme greed). Seven classic components — momentum, strength, breadth, put/call ratio, volatility, safe-haven demand and junk-bond demand — are each compared with their own last year and scored 0–100, where 50 is a typical day. The score is the average of those component scores. It uses the same scale and the same zones as the CNN Business Fear & Greed Index.

ElementMeaning
Score lineThe sentiment score, 0–100, in the colour of its zone. Named at the right edge, e.g. score 31 · Fear.
Lines at 25 and 75The edges of Extreme Fear (red) and Extreme Greed (green).
Grey band 45–55Neutral: no strong bias.
Background tintRed while the score is in Extreme Fear, green in Extreme Greed (setting Highlight extreme zones).
Blue line (optional)One component’s own 0–100 score, chosen in Overlay one component, named at the right edge.
Table (on the price chart)Date and title, the conclusion, every component’s score and zone, and the score one week ago.

How to read it

The zones

Zones are judged on the rounded score shown on screen, so the number and the zone word always agree.

EXTREME FEAR 0–24

Panic selling. Readings like this have come near market lows: watch for a bottom and wait for the price to confirm it.

FEAR 25–44

Investors are cautious.

NEUTRAL 45–55

No strong bias either way.

GREED 56–75

Investors are confident.

EXTREME GREED 76–100

Euphoria: tighten stops and slow down new buying.

Sentiment is a contrarian gauge. Extremes tend to come before turns, and leaving an extreme is usually a better trigger than reaching it: Fear Fading (rising out of Extreme Fear) is the main buy-watch signal, Greed Fading means the mood is cooling. Crosses of 50 show the balance shifting between fear and greed.

In strong trends an extreme can last for weeks. Use the score as a market-level filter next to the price structure, not as an entry signal on its own.

The table

RowContent
TitleDate and time of the last update (exchange time zone) and [Finaspex] MARKET SENTIMENT v26.4.30.
ConclusionZone, score and a short reading on a soft tint of the zone colour: EXTREME FEAR · n — panic, watch for a bottom, FEAR · n — investors cautious, NEUTRAL · n — no strong bias, GREED · n — investors confident, EXTREME GREED · n — euphoria, tighten risk. With fewer than four components available: WAITING FOR DATA — needs 4 components.
COMPONENTS · x of y with dataBlock header: components with data out of components switched on.
One row per componentName, its own 0–100 score and its zone. Extreme zones are bold; a switched-off component reads off, a ticker missing on your data plan reads n/a.
1 week agoThe score five S&P 500 trading days ago with its zone, and the change since (+ = towards greed, − = towards fear).

The table sits on the price chart, so it never covers the sentiment line. Use Overlay one component to see what drives a move: a fear reading led by volatility alone reads differently from one where breadth, strength and credit agree.

Settings

Components

1. Momentum — SPX vs 125d SMA default: on

How far the S&P 500 is above or below its 125-day average. Far above = greed, far below = fear.

2. Strength — NYSE net new 52w highs default: on

NYSE stocks at new 52-week highs minus those at new lows, 10-day average.

3. Breadth — McClellan oscillator default: on

McClellan oscillator of advancing minus declining NYSE volume or issues.

Breadth source default: Volume (UVOL-DVOL)

Volume (UVOL − DVOL) weighs where the money goes; Issues (ADD) counts stocks, so every stock has the same weight.

4. Put/Call — 5d avg (inverted) default: on

Put options bought against call options, 5-day average. Heavy put buying = fear.

Put/Call ticker default: USI:PCC

PCC = all options. PCCE = equity options alone, which reacts faster to retail mood.

5. Volatility — VIX vs 50d SMA (inverted) default: on

VIX against its 50-day average. VIX well above its average = fear.

6. Safe haven — SPY vs TLT 20d return default: on

Stocks (SPY) against Treasury bonds (TLT) over 20 trading days. Stocks ahead = greed.

7. Junk bonds — credit risk appetite default: on

High-yield bonds against Treasuries. Investors buying riskier debt = greed.

Junk source default: HYG/IEF ratio

HYG/IEF = high-yield bond ETF against a Treasury ETF, updated intraday. HY OAS = the ICE BofA high-yield spread from FRED, published with a one-day lag.

Chart

Overlay one component default: None

Draws one component’s own 0–100 score next to the main line and highlights its row in the table.

Highlight extreme zones default: on

Tints the pane background red in Extreme Fear and green in Extreme Greed.

Alerts at bar close default: on

Alert conditions are checked when the chart bar closes, so a zone touched and left inside one bar does not fire. Off: alerts can fire intrabar.

Table

Show table default: on

Shows or hides the table.

Theme default: Executive Slate

The eight [Finaspex] themes: Executive Slate, Warm Paper, Nordic Frost, Porcelain Minimal, Institutional Dark, Espresso, Emerald Night, OLED Contrast.

Position default: Top right

Corner of the price chart for the table: Top right, Top left, Middle right, Bottom right or Bottom left.

Text size default: Normal

Tiny, Small, Normal or Large; also sets the size of the line names at the right edge.

Fixed method values

ValueFixed atUsed for
Z-score lookback252 trading daysEach component is compared with its own last year
Z-score cap±3One extreme reading never dominates
Components needed4Minimum with data for the score to show
Week-ago comparison5 S&P 500 trading days1 week ago row
Momentum average125 daysComponent 1
Strength average10 daysComponent 2
McClellan EMAs19 and 39 daysComponent 3
Put/Call average5 daysComponent 4
VIX average50 daysComponent 5
Safe-haven window20 daysComponent 6
Junk-bond average50 daysComponent 7
Zone edges24 / 44 / 55 / 75Upper edge of Extreme Fear, Fear, Neutral and Greed

Methodology

The seven components

Every component is calculated on daily data. Positive deviation means greed, negative means fear.

#ComponentDataRaw value
1MomentumSP:SPX(close ÷ SMA(close, 125) − 1) × 100
2StrengthINDEX:HIGN − INDEX:LOWNSMA(net new 52-week highs, 10)
3BreadthUSI:UVOL − USI:DVOL or USI:ADDEMA(net, 19) − EMA(net, 39)
4Put/CallUSI:PCC or USI:PCCE−SMA(ratio, 5)
5VolatilityTVC:VIX−(VIX ÷ SMA(VIX, 50) − 1) × 100
6Safe havenSPY / TLTln(ratio ÷ ratio 20 days ago) × 100
7Junk bondsHYG / IEF or FRED:BAMLH0A0HYM2ln(ratio ÷ SMA(ratio, 50)) × 100, or −(spread − SMA(spread, 50))

From component to score

z = (raw − SMA(raw, 252)) ÷ stdev(raw, 252), clipped to ±3
component score = 100 ÷ (1 + e−1.702 · z)
z = 0 → 50  ·  +1 → 85  ·  −1 → 15  ·  +2 → 97  ·  −2 → 3
score = average of the component scores that are switched on and have data (at least 4)

The conversion is the logistic form of the normal curve: a component scoring 85 is greedier than on about 85% of days in its own recent history. Because each component is scored first and then averaged, the result stays on the same 0–100 scale as every single component, and no second normalisation stretches it towards 0 or 100.

Why the same zones as CNN: CNN describes its index as seven indicators, each scored 0–100 by how far it deviates from its own average, then averaged with equal weights. This indicator follows that structure step for step with a transparent, documented normalisation (a one-year z-score and the normal curve), so the two readings move together and sit in the same zone on most days. Compare zones and turning points with CNN’s gauge rather than single-day values.

One daily clock for every chart

The whole calculation — components and score — runs inside one daily request to SP:SPX. The S&P 500 trading calendar is the clock, so the chart’s own bars never enter the maths:

A ticker missing on your data plan returns no data, shows n/a and is left out of the average rather than counted as neutral. Every component score is also listed in the Data Window.

Alerts

Open Create alert → Condition: [Finaspex] Market Sentiment and pick one of the conditions below. Messages include the current score.

AlertFires when
Extreme Greed (entered)the score enters 76–100
Extreme Fear (entered)the score enters 0–24
Cross Above 50the score crosses above 50 — greed now outweighs fear
Cross Below 50the score crosses below 50 — fear now outweighs greed
Greed Fading (left Extreme Greed)the score drops out of Extreme Greed
Fear Fading (left Extreme Fear)the score rises out of Extreme Fear — contrarian buy watch

With Alerts at bar close on (default), the conditions are checked at the chart bar’s close.

Scope and design choices

A market-wide gauge for the US
The components describe the US stock market, so the score is the same whichever ticker is open. Use it as the backdrop for any US stock or ETF; for the macro regime behind the mood see the Macro Regime Compass.
Daily data on every timeframe
Sentiment components are published once a day, so the score is built on daily data and anchored to the S&P 500 calendar. On intraday charts it changes with the daily value, not with each intraday bar.
Close to CNN’s numbers, by design not identical
CNN does not publish its exact normalisation or lookback windows, and some inputs here come from the data TradingView provides (HYG/IEF or the FRED spread for junk-bond demand, SPY/TLT for safe-haven demand). The zones and turning points line up; single-day values can differ by a few points.
Equal weights
Momentum, strength and volatility are related, so trend conditions have a strong voice in the score — the same as in CNN’s equal-weight design. Overlay a component to see which ones lead a move.
History
The score needs about 1.5 years of daily history (125 days for momentum plus 252 for the z-score). S&P 500 history covers this on every chart, so the line starts where the chart starts.
Data plan
Breadth, put/call and the FRED spread depend on your TradingView data. A missing ticker drops out of the average; the score needs at least four components.

Works well with