EH StochRSI DualBB Overlay1. Overview
This script extends the open-source Stochastic RSI implementation published by LazyBear, incorporating Ehlers Super Smoother filtering.
The primary modification introduces a dual Bollinger Band–based price mapping framework that projects oscillator values directly into price space.
2. Theoretical Basis
The core oscillator structure is derived from:
Stochastic RSI methodology
Ehlers Super Smoother filter (John F. Ehlers)
The oscillator is normalized to a bounded range of .
3. Structural Extension
Unlike the conventional sub-window oscillator format, this version transforms the oscillator into an overlay-based volatility projection model.
Two volatility envelopes are applied:
Bollinger Band (Length 20, Multiplier 4)
Bollinger Band (Length 20, Multiplier 2)
4. Mapping Model Specification
The mapping is defined as follows:
Oscillator +50 → BB(20,4) Upper
Oscillator -50 → BB(20,4) Lower
Oscillator +25 → BB(20,2) Upper
Oscillator -25 → BB(20,2) Lower
The projection is linear and volatility-relative:
Price = Basis + (Oscillator / ScalingFactor) × BandDeviation
This creates a volatility-aligned price envelope representation.
5. Analytical Intent
The script is designed for:
Volatility structure visualization
Contextual price positioning within dynamic deviation layers
Overlay-based structural observation
It is not intended as a standalone signal generator.
6. Limitations
Because oscillator values are projected into price space, divergence analysis using this mapped representation is not recommended.
The distortion introduced by volatility scaling alters traditional oscillator interpretation.
Penunjuk Pine Script®






















