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.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
"Better to take a step back, than to stand stuck forever."
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
"Better to take a step back, than to stand stuck forever."
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。