OPEN-SOURCE SCRIPT
Composite Institutional Momentum Oscillator [CMO]

📊 Composite Institutional Momentum Oscillator [CMO]
The Composite Institutional Momentum Oscillator (CMO) is an advanced, volume-weighted momentum oscillator originally engineered for Bitcoin and Crypto markets, yet fully optimized to perform seamlessly across all asset classes and sectors—including Stocks, Forex, Indices, and Commodities. 📈
By pairing short-term price velocity with synthetic order flow delta, volume absorption metrics, and multi-timeframe alignment, CMO filters out market noise to isolate true institutional positioning and trend expansion regardless of the traded asset. 🔥
🔍 How Order Flow & Absorption Work Across Markets
Because traditional Pine Script environment variables process completed transactions bar-by-bar rather than raw Level 2 limit order books, CMO utilizes robust algorithmic estimations derived from volume and intra-bar price action:
* ⚡ Synthetic Volume Delta Estimate: Approximates aggressive market buying versus market selling pressure per bar based on the close position within the high-low candle range ($\text{bullVol} \text{ vs. } \text{bearVol}$).
* 🛡️ Stealth Absorption Detection: Identifies hidden limit-order wall absorption by tracking Volume Efficiency ($\frac{\text{Volume}}{\text{Candle Range}}$). Abnormally high volume occurring inside narrow price ranges flags institutional limit orders absorbing aggressive market flow without letting price slip.
⭐ Key Features
* 🌐 Universal Multi-Asset Optimization: Engineered around Bitcoin's high volatility dynamics, making it exceptionally sharp at detecting momentum shifts in standard equities, forex pairs, and commodities.
* ⚖️ Order Flow & Stealth Absorption Weighting: Dynamically scales momentum signals using synthetic delta and volume efficiency ratios to capture true institutional effort.
* 🚀 Dual-WMA Velocity Core: Combines fast and slow Weighted Moving Average calculations to capture responsive directional changes while reducing false breakout signals during sideways consolidation.
* ⚓ Normalized CIMA Anchor: Anchors momentum against a long-term macro cost basis (510-period default) scaled by rolling standard deviation.
* 🎯 Liquidity Sweep Detection: Automatically flags potential institutional stop-hunts when price temporarily breaches macro high/low boundaries before reclaiming them.
* 🧠 Synthetic Fear & Greed Index: Computes a real-time 0–100 market sentiment score integrating volatility ratios, relative momentum positioning, and standard 14-period RSI metrics.
* 🖥️ On-Chart Status Dashboard: Provides an active HUD readout of macro trend alignment, micro trend bias, local momentum phase, and real-time sentiment metrics.
💡 Trading Guidance (Crypto, Stocks, Forex & Commodities)
* 🟢 Bullish / Bearish Expansion: A CMO line breach above +1.0 (or below -1.0) alongside daily MTF alignment confirms high-probability institutional trend expansion.
* 🔄 Accumulation / Distribution: Oscillations between 0.05 and 1.0 signal controlled accumulation phases, while values between -0.05 and -1.0 indicate steady distribution.
* 🧹 Liquidity Sweeps: Highlighted markers identify rapid false breaches of macro highs/lows, offering high-reward mean-reversion entries in the direction of the higher-timeframe trend.
* ⚠️ Extreme Sentiment Reversals: Fear & Greed index values above 75 (Extreme Greed) or below 25 (Extreme Fear) alert traders to overextended leverage and imminent pullback potential.
⚙️ Input Settings
Parameter Default Description
MTF Trend Filter Frame 1440 (1D) Higher timeframe resolution used to establish macro directional trend bias.
Price Source ohlc4 Calculation source for momentum and volume algorithms.
Macro Baseline Lookback 510 Lookback period for institutional cost basis and standard deviation bounds.
Micro Baseline Lookback 63 Slow period for dual-WMA velocity calculations.
CMO Length 12 Fast period for dual-WMA velocity calculations.
Enable Order Flow Delta True Toggles synthetic volume delta weighting in composite momentum formulas.
Enable Stealth Absorption True Toggles volume efficiency weighting to detect hidden limit order absorption.
The Composite Institutional Momentum Oscillator (CMO) is an advanced, volume-weighted momentum oscillator originally engineered for Bitcoin and Crypto markets, yet fully optimized to perform seamlessly across all asset classes and sectors—including Stocks, Forex, Indices, and Commodities. 📈
By pairing short-term price velocity with synthetic order flow delta, volume absorption metrics, and multi-timeframe alignment, CMO filters out market noise to isolate true institutional positioning and trend expansion regardless of the traded asset. 🔥
🔍 How Order Flow & Absorption Work Across Markets
Because traditional Pine Script environment variables process completed transactions bar-by-bar rather than raw Level 2 limit order books, CMO utilizes robust algorithmic estimations derived from volume and intra-bar price action:
* ⚡ Synthetic Volume Delta Estimate: Approximates aggressive market buying versus market selling pressure per bar based on the close position within the high-low candle range ($\text{bullVol} \text{ vs. } \text{bearVol}$).
* 🛡️ Stealth Absorption Detection: Identifies hidden limit-order wall absorption by tracking Volume Efficiency ($\frac{\text{Volume}}{\text{Candle Range}}$). Abnormally high volume occurring inside narrow price ranges flags institutional limit orders absorbing aggressive market flow without letting price slip.
⭐ Key Features
* 🌐 Universal Multi-Asset Optimization: Engineered around Bitcoin's high volatility dynamics, making it exceptionally sharp at detecting momentum shifts in standard equities, forex pairs, and commodities.
* ⚖️ Order Flow & Stealth Absorption Weighting: Dynamically scales momentum signals using synthetic delta and volume efficiency ratios to capture true institutional effort.
* 🚀 Dual-WMA Velocity Core: Combines fast and slow Weighted Moving Average calculations to capture responsive directional changes while reducing false breakout signals during sideways consolidation.
* ⚓ Normalized CIMA Anchor: Anchors momentum against a long-term macro cost basis (510-period default) scaled by rolling standard deviation.
* 🎯 Liquidity Sweep Detection: Automatically flags potential institutional stop-hunts when price temporarily breaches macro high/low boundaries before reclaiming them.
* 🧠 Synthetic Fear & Greed Index: Computes a real-time 0–100 market sentiment score integrating volatility ratios, relative momentum positioning, and standard 14-period RSI metrics.
* 🖥️ On-Chart Status Dashboard: Provides an active HUD readout of macro trend alignment, micro trend bias, local momentum phase, and real-time sentiment metrics.
💡 Trading Guidance (Crypto, Stocks, Forex & Commodities)
* 🟢 Bullish / Bearish Expansion: A CMO line breach above +1.0 (or below -1.0) alongside daily MTF alignment confirms high-probability institutional trend expansion.
* 🔄 Accumulation / Distribution: Oscillations between 0.05 and 1.0 signal controlled accumulation phases, while values between -0.05 and -1.0 indicate steady distribution.
* 🧹 Liquidity Sweeps: Highlighted markers identify rapid false breaches of macro highs/lows, offering high-reward mean-reversion entries in the direction of the higher-timeframe trend.
* ⚠️ Extreme Sentiment Reversals: Fear & Greed index values above 75 (Extreme Greed) or below 25 (Extreme Fear) alert traders to overextended leverage and imminent pullback potential.
⚙️ Input Settings
Parameter Default Description
MTF Trend Filter Frame 1440 (1D) Higher timeframe resolution used to establish macro directional trend bias.
Price Source ohlc4 Calculation source for momentum and volume algorithms.
Macro Baseline Lookback 510 Lookback period for institutional cost basis and standard deviation bounds.
Micro Baseline Lookback 63 Slow period for dual-WMA velocity calculations.
CMO Length 12 Fast period for dual-WMA velocity calculations.
Enable Order Flow Delta True Toggles synthetic volume delta weighting in composite momentum formulas.
Enable Stealth Absorption True Toggles volume efficiency weighting to detect hidden limit order absorption.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.