OPEN-SOURCE SCRIPT

Stochastic Heat Map

559
Title: Delta-Filtered Stochastic Heat Map

► Core Concept & Originality
This script modifies the public domain Stochastic Heat Map concept by replacing standard overbought/oversold color gradients with a Volume-Delta confirmation matrix.

The traditional Stochastic Heat Map plots a series of stochastic oscillators to visualize momentum as a wave. However, traditional oscillators are mathematically bound (0 to 100), meaning they often falsely signal "exhaustion" (turning red) during strong, sustained trends simply because the value is pegged near 100. This indicator solves that structural limitation by integrating a Delta Proxy directly into the color engine, cross-referencing momentum levels with actual buying and selling pressure.

► Underlying Logic & Calculations

The Momentum Wave: The script calculates 28 individual Stochastic oscillators. The lookback lengths increment systematically (from fast to slow) to create a visual wave of overall price momentum across multiple cyclical lengths simultaneously.

The Delta Proxy: The script calculates a basic volume delta for each bar. If the Close is greater than or equal to the Open, the volume is treated as positive (buying pressure). If the Close is strictly less than the Open, the volume is treated as negative (selling pressure).

The Color Matrix: The indicator's color output is strictly dictated by the alignment of the Stochastic value and the Delta Proxy:

Bullish Agreement: High Stochastic + Positive Delta = Bright Bullish Colors. This indicates true strength, where volume is actively supporting the high momentum.

Bearish Agreement: Low Stochastic + Negative Delta = Bright Bearish Colors. This indicates true weakness, where volume is actively supporting the downward momentum.

Divergence / Exhaustion: If the Stochastic is high but the Delta is negative (or vice versa), the script outputs muted, darker colors. This warns the trader of a potential loss of volume support at momentum extremes.

► How to Use It

Trend Confirmation: Traders can look for the entire block of 28 lines to align in a bright, single-color theme to confirm a healthy, volume-backed trend.

Spotting Reversals: Watch for color shifts at the extreme peaks and troughs of the wave. If the momentum wave is high but the colors suddenly shift to a bearish theme, it indicates that sellers are taking control of the volume at the top of the range, preempting a potential reversal before the momentum wave actually curves downward.

면책사항

해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.