Open-source

Fear and Greed Index

The Fear and Greed Index is an advanced technical analysis indicator designed by BigBeluga to measure market sentiment and momentum without incorporating t...

Fear and Greed Index preview
Published Oct 26, 2026
5893,729

What this TradingView script does

The Fear and Greed Index is an advanced technical analysis indicator designed by BigBeluga to measure market sentiment and momentum without incorporating traditional volatility metrics. Traditional sentiment tools often rely on complex external feeds or noisy indicators. To solve this limitation, this script computes a composite Fear & Greed index on a 0 to 100 scale using three core market factors: Momentum (Relative Strength Index), Trend (distance from Simple Moving Average), and Volume Flow (buying versus selling volume pressure).

The indicator features a selectable Gauge Type input, allowing traders to toggle between a classic dual-track polyline Arc gauge and a Vertical gradient box scale gauge rendered on the last bar of the chart.

Customizable length periods, overbought/oversold levels, box counts, and a five-color gradient palette allow traders to fine-tune the sentiment display across various asset classes and timeframes.

🔵 HOW IT WORKS The system operates through an integrated architecture where each component dynamically influences calculations and visuals:

1 — Multi-Factor Sentiment Engine

- Momentum Factor: Evaluates price momentum using the Momentum (RSI) Length input (default 14), scaling values from 0 to 100. Adjust this parameter shorter (e.g., 7 to 10) for fast scalping on lower timeframes, or longer (e.g., 21 to 28) for macro sentiment analysis.

- Trend Factor: Measures normalized distance from a baseline moving average governed by the Trend (SMA) Length input (default 50). Set this length shorter (e.g., 20) for responsive short-term trend tracking or longer (e.g., 100 to 200) for major market cycles.

- Volume Flow Factor: Calculates buying versus selling volume pressure using the Volume Flow Length input (default 20).

2 — Composite Index & Threshold Logic

- Composite Calculation: Averages the three normalized factors into a single Fear & Greed index value ranging from 0 to 100.

How traders can use it

Use Fear and Greed Index as a chart context layer inside TradingView: read the structure it highlights, compare it with your market bias, and let the script narrow which moves deserve attention.

The strongest workflow is to combine the script with higher timeframe structure, volume context, and a repeatable execution plan instead of treating any single label as a standalone trade.

Ready to level up your trading?

Get advanced indicators, backtesting and the BigBeluga community in one plan.

Get Access