OPEN-SOURCE SCRIPT

Overbought & Oversold Zones - MTF Signals

8 100
Overbought & Oversold Zones - MTF Signals

Overbought & Oversold Zones - MTF Signals is a visual analytical indicator that highlights extreme directional conditions directly on the price chart and across multiple timeframes. Instead of plotting an oscillator line in a separate pane, it paints gradient zones around price during periods of sustained buying or selling pressure, helping traders see exhaustion states at a glance.

The indicator combines a custom Pressure Index calculation with a volatility-adjusted envelope to shape the zones, and a compact multi-timeframe panel that scans the current timeframe plus the three higher ones.

This is a visual analytical tool intended for chart reading and context. It does not execute trades and does not provide financial advice.

Key Features

  • On-chart gradient zones highlighting overbought and oversold conditions
  • Zones follow the shape of a dynamic volatility envelope (not rectangles)
  • Multi-timeframe panel scanning current TF plus three higher TFs
  • Merged phase logic that groups close-proximity conditions into single zones
  • Adjustable sensitivity through ten preset levels
  • Fully customizable colors and optional text labels


Core Concept

The indicator uses a custom Pressure Index model to evaluate how consistently price has been pushing above or below a volatility-adjusted baseline. Unlike traditional oscillators such as RSI (which measures gain/loss ratios) or Stochastic (which measures position within a range), Pressure Index combines two complementary components:

  • Persistence — how consistently price has stayed above or below a volatility-adjusted baseline over the measurement window, weighted by normalized distance rather than as a binary above/below count
  • Displacement — how far current price is from that baseline in ATR-normalized units


The baseline adapts to volatility regime: during high-volatility periods the reference band widens to reduce false exhaustion signals, and during calm periods it tightens. Final output is bounded to a 0–100 scale and smoothed with a sensitivity-scaled EMA.

Zone Visualization

When the Pressure Index enters an extreme region, the indicator renders a three-layer gradient zone that follows the shape of the dynamic envelope:

  • Overbought zones fade downward from the upper envelope into the channel
  • Oversold zones fade upward from the lower envelope into the channel
  • Zone thickness scales with ATR so the visual is comparable across markets and timeframes


The gradient has three layers: a dense core band close to the envelope, a middle fade band, and an outer soft fade. This layered approach helps the zones visually surround the candles inside the extreme state rather than appearing as flat bars.

Multi-Timeframe Panel

A compact panel in the top-right corner of the chart displays the Pressure Index across the current timeframe and three higher timeframes (automatically selected from the standard ladder: 1m, 5m, 15m, 30m, 1H, 4H, 1D, 1W, 1M).

Each row shows:

  • Timeframe label
  • Horizontal gauge bar with a position marker
  • Numeric Pressure Index value (0–100)
  • State pill indicating Overbought (OB), Oversold (OS), or neutral direction


The panel adapts its higher timeframes to whichever chart timeframe is currently active. The current chart timeframe is marked with a bullet indicator.

Typical Analysis Workflow

A common analytical workflow may include:

  1. Observing gradient zones on the main chart to identify extended conditions
  2. Checking the MTF panel to place the current reading in higher-timeframe context
  3. Evaluating price structure and candle behavior near zone edges
  4. Combining zone information with other forms of analysis and risk management


Configuration

Sensitivity — Controls how quickly the Pressure Index reacts to changes in price pressure. Lower values produce faster, more frequent signals. Higher values produce slower, steadier signals.

  • Lower settings (1-3) — Faster reactivity, suitable for intraday charts and shorter timeframes
  • Middle settings (4-6) — Balanced sensitivity, default for most markets and timeframes
  • Higher settings (7-10) — Slower reactivity, suitable for swing and position-style chart reading


On-Chart Display — Toggles the gradient zones on or off.

Show Text Labels — Toggles "Overbought" and "Oversold" text labels that appear once per merged phase. Can be disabled for a cleaner chart.

Show MTF Panel — Toggles the multi-timeframe panel.

Appearance — Customizable colors for Overbought and Oversold zones, panel text size, and history rendering depth.

Markets and Timeframes

The indicator can be applied across multiple markets and timeframes:

  • Forex
  • Stocks and Indices
  • Commodities
  • Cryptocurrencies


Because the zone thickness and Pressure Index smoothing are both normalized by ATR and sensitivity presets, the visual behavior remains consistent across different instruments and timeframes without manual re-tuning.

Alerts

Two alert conditions are available:

  • Overbought Entry — triggers on the first bar a new Overbought state begins
  • Oversold Entry — triggers on the first bar a new Oversold state begins


Important Notes

This indicator is an analytical visualization tool. It does not execute trades and does not provide financial advice. All outputs are informational and should be interpreted within the context of independent market analysis and proper risk management.

Past behavior of any technical indicator does not guarantee future results.

If you find this indicator useful, feel free to add it to your favorites and share your feedback in the comments. Community feedback helps improve future updates.

免責聲明

這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。