OPEN-SOURCE SCRIPT

Canonical Momenta Indicator [T1][T69]

219
๐Ÿ“Œ Overview
The Canonical Momenta Indicator [T1][T69] models trend pressure using a Lagrangian-based momentum engine combined with reflexivity theory to detect bursts in price movement influenced by herd behavior and volume acceleration.

๐Ÿง  Features
  • Lagrangian-based kinetic model combining velocity and acceleration
  • Reflexivity burst detection with directional scoring
  • Adaptive momentum-weighted output (adaptiveCMI)
  • Buy ๐Ÿ‹ / Sell ๐Ÿป labels when reflexivity confirms direction
  • Fully parameterized for customization


โš™๏ธ How to Use
  • This indicator helps traders:
  • Detect reflexive bursts in market activity driven by sharp price movement + volume spikes
  • Capture herd-driven directional moves early.
  • Gauge market pressure using a kinetic-potential energy model.


Suggested signals:
๐Ÿ‹ Reflexive Up: Strong bullish momentum spike confirmed by volume and positive lagrangian pressure
๐Ÿป Reflexive Down: Strong bearish dump confirmed by volume and negative lagrangian burst

๐Ÿ”ง Configuration
MA Lookback Length - Smoothing for baseline price & energy calculation
Reflexivity Momentum Threshold - Price momentum trigger for burst detection
Reflexivity Lookback - Period over which bursts are counted
Reflexivity Window - Minimum burst sum to trigger signal label
Volume Spike Threshold - % above average volume to qualify as burst

๐Ÿ“Š Behavior Description
The indicator computes a Lagrangian energy:
  • Kinetic Energy = (velocityยฒ + 0.5 * accelerationยฒ)
  • Potential Energy = deviation from moving average (distanceยฒ)
  • Lagrangian = Potential โˆ’ Kinetic (higher = overextension)

Then, reflexive bursts are triggered when:
  • Price is rising or falling over short window (burstMvmnt)
  • Volume is above average by a user-defined multiple

Each bar gets a burst score:
  • +1 for up-burst
  • โˆ’1 for down-burst
  • 0 otherwise


โš ๏ธ Risk Profile Based on Lookback Settings
Risk Level | Description | Recommended Lookback
๐ŸŸฅ High | Extremely sensitive to bursts, prone to false signals | 7โ€“10
๐ŸŸจ Moderate | Balanced reflexivity with trend confirmation | 11โ€“20
๐ŸŸฉ Low | Filters out most noise, slower to react | 21+

๐Ÿงช Advanced Tips
  • Combine with moving average slope for trend filtering
  • Use divergence between adaptiveCMI and price to detect exhaustion
  • Works well in crypto, commodities, and volatile assets


โš ๏ธ Limitations
  • Sensitive to high volatility noise if volMult is too low
  • Designed for higher timeframes (1H, 4H, Daily) for reliability
  • Doesnโ€™t confirm direction in sideways markets โ€” pair with other filters


๐Ÿ“ Disclaimer
This tool is provided for educational and informational purposes. Always do your own backtesting and use proper risk management.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.