OPEN-SOURCE SCRIPT
Pure Momentum Oscillator

Pure Momentum Oscillator | MisinkoMaster
The Pure Momentum Oscillator is a sophisticated, volatility-normalized momentum indicator engineered to capture clean structural trend acceleration. Traditional momentum oscillators often rely on raw price changes or standard percentage differences, which can become heavily distorted during high-volatility expansions or low-liquidity market regimes.
By integrating a double-smoothed price projection engine (combining exponential smoothing, de-trending mechanics, and weighted moving average smoothing) with Average True Range (ATR) normalization, the Pure Momentum Oscillator isolates pure directional velocity across varying market conditions.
How It Works (The Core Architecture)
Double-Smoothed Price Projection Engine:
De-trended Smoothing: The algorithm calculates exponential moving averages across open, high, low, and close prices (oa, ha, la, ca), then computes de-trended price projections (2×Price−EMA) to minimize phase lag.
Weighted Secondary Smoothing: These projected price streams are further smoothed using a Weighted Moving Average (oda, hda, lda, cda) matching the lookback length to produce an ultra-clean, synthetic price action profile.
Volatility-Normalized Rate of Change:
The momentum rate of change is calculated using the difference in the smoothed close (cda - cda[1]) normalized directly against the current Average True Range (atr). This scales momentum values consistently across different volatility environments and asset classes.
Threshold-Based Trend Logic:
Long State (1): Triggered when the volatility-normalized momentum exceeds the positive upper threshold (change > l).
Short State (-1): Triggered when momentum drops below the negative lower threshold (change < s).
Key Features
Volatility-Normalized Momentum: Divides price change by ATR to ensure momentum readings remain reliable during sudden volatility shifts.
Synthetic Smoothed Price Overlay: Plots a mirrored, smoothed representation of price action (oda, hda, lda, cda) directly on your chart pane alongside original candles.
Dual-Threshold Execution Bands: Features clear upper and lower threshold lines (l, s) with dynamic background fills highlighting momentum strength.
Adaptive Candle Morphing: Automatically recolors both the original price candles and the smoothed price candles (vibrant green for bullish momentum, vivid red for bearish momentum).
Input Parameters & Optimization Guide
Lookback: Sets the lookback period for the moving averages, ATR normalization, and momentum velocity calculations (Default: 45).
Long Threshold: Sets the positive momentum boundary required to lock in a bullish trend state (Default: 0.05).
Short Threshold: Sets the negative momentum boundary required to lock in a bearish trend state (Default: -0.05).
Trading Strategies & Execution
Threshold Cross Momentum Entries
Bullish Execution: Confirmed when normalized momentum crosses cleanly above the positive Long Threshold, flipping chart candles green.
Bearish Execution: Confirmed when normalized momentum crosses below the negative Short Threshold, flipping chart candles red.
Momentum Acceleration Fills
Observe the shaded histogram fills between the momentum oscillator line and the threshold boundaries. Expanding fills indicate accelerating structural momentum, while contracting fills warn of momentum deceleration and potential range consolidation.
Disclaimer: Trading financial markets involves high risk. This technical script is designed as an informational analytical tool to support your rule-based mechanical execution system and does not constitute financial advice.
The Pure Momentum Oscillator is a sophisticated, volatility-normalized momentum indicator engineered to capture clean structural trend acceleration. Traditional momentum oscillators often rely on raw price changes or standard percentage differences, which can become heavily distorted during high-volatility expansions or low-liquidity market regimes.
By integrating a double-smoothed price projection engine (combining exponential smoothing, de-trending mechanics, and weighted moving average smoothing) with Average True Range (ATR) normalization, the Pure Momentum Oscillator isolates pure directional velocity across varying market conditions.
How It Works (The Core Architecture)
Double-Smoothed Price Projection Engine:
De-trended Smoothing: The algorithm calculates exponential moving averages across open, high, low, and close prices (oa, ha, la, ca), then computes de-trended price projections (2×Price−EMA) to minimize phase lag.
Weighted Secondary Smoothing: These projected price streams are further smoothed using a Weighted Moving Average (oda, hda, lda, cda) matching the lookback length to produce an ultra-clean, synthetic price action profile.
Volatility-Normalized Rate of Change:
The momentum rate of change is calculated using the difference in the smoothed close (cda - cda[1]) normalized directly against the current Average True Range (atr). This scales momentum values consistently across different volatility environments and asset classes.
Threshold-Based Trend Logic:
Long State (1): Triggered when the volatility-normalized momentum exceeds the positive upper threshold (change > l).
Short State (-1): Triggered when momentum drops below the negative lower threshold (change < s).
Key Features
Volatility-Normalized Momentum: Divides price change by ATR to ensure momentum readings remain reliable during sudden volatility shifts.
Synthetic Smoothed Price Overlay: Plots a mirrored, smoothed representation of price action (oda, hda, lda, cda) directly on your chart pane alongside original candles.
Dual-Threshold Execution Bands: Features clear upper and lower threshold lines (l, s) with dynamic background fills highlighting momentum strength.
Adaptive Candle Morphing: Automatically recolors both the original price candles and the smoothed price candles (vibrant green for bullish momentum, vivid red for bearish momentum).
Input Parameters & Optimization Guide
Lookback: Sets the lookback period for the moving averages, ATR normalization, and momentum velocity calculations (Default: 45).
Long Threshold: Sets the positive momentum boundary required to lock in a bullish trend state (Default: 0.05).
Short Threshold: Sets the negative momentum boundary required to lock in a bearish trend state (Default: -0.05).
Trading Strategies & Execution
Threshold Cross Momentum Entries
Bullish Execution: Confirmed when normalized momentum crosses cleanly above the positive Long Threshold, flipping chart candles green.
Bearish Execution: Confirmed when normalized momentum crosses below the negative Short Threshold, flipping chart candles red.
Momentum Acceleration Fills
Observe the shaded histogram fills between the momentum oscillator line and the threshold boundaries. Expanding fills indicate accelerating structural momentum, while contracting fills warn of momentum deceleration and potential range consolidation.
Disclaimer: Trading financial markets involves high risk. This technical script is designed as an informational analytical tool to support your rule-based mechanical execution system and does not constitute financial advice.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
"Better to take a step back, than to stand stuck forever."
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
"Better to take a step back, than to stand stuck forever."
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.