OPEN-SOURCE SCRIPT

Stochastic MTF Table [XoRonX]

503
### Suggested Title

Stochastic MTF Table with Momentum & Divergence

### Description

This indicator provides a compact multi-timeframe overview of Stochastic conditions across
five fixed timeframes:

- M15
- M30
- H1
- H4
- D1

The table displays the current %K / %D values and classifies each timeframe as:

- OB — Over Bought
- OS — Over Sold
- Neutral
- DIV — Bullish or Bearish Divergence

### Momentum Confirmation

A momentum signal is confirmed when all five timeframes are aligned:

- All timeframes in Over Bought: Upward Momentum
- All timeframes in Over Sold: Downward Momentum

When a new five-timeframe momentum confirmation occurs, the indicator places:

- A green upward arrow below the candle for upward momentum.
- A red downward arrow above the candle for downward momentum.
- An optional candle color highlight.
chart clean.

### Divergence Detection

The indicator detects regular Stochastic divergence:

- Bullish Divergence: Price forms a lower low while Stochastic forms a higher low.
- Bearish Divergence: Price forms a higher high while Stochastic forms a lower high.

Divergence signals use confirmed pivots and therefore appear after the selected pivot
confirmation period.

### Customizable Settings

- Stochastic K period
- Stochastic D period
- K smoothing
- Over Bought and Over Sold levels
- Pivot left and right lookback
- Maximum distance between pivots
- Divergence display duration
- Optional OB/OS filter for divergence
- Table position and text size
- Momentum arrows and candle coloring

### Alerts

Alert conditions are available for:

- New Over Bought condition
- New Over Sold condition
- Bullish Divergence
- Bearish Divergence
- Five-timeframe Upward Momentum
- Five-timeframe Downward Momentum

### Important Note

Values from active higher-timeframe candles may change until those candles close. Momentum
and divergence indications should be used as confirmation tools, not as standalone buy or
sell signals.

This indicator is intended for technical analysis and educational purposes only. It does
not constitute financial advice.

Penafian

Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.