Relative Momentum Deviation | QuantEdgeB

🛠️ Overview
Relative Momentum Deviation (RMD) is a precision-crafted momentum-based oscillator that measures relative price deviation through a normalized RSI structure and volatility-weighted SD bands. Unlike standard oscillators, RMD dynamically adapts its thresholds using rolling standard deviation on a DEMA-based foundation, making it uniquely responsive in both trending and ranging environments.
Designed to filter out noise and detect critical breakout zones, RMD is a powerful addition to any quantitative trader’s toolkit. Whether used as a standalone entry/exit signal or confirmation layer, RMD excels at identifying momentum inflection points with statistical confidence.
✨ Key Features
🔹 Normalized RSI-Based Core
RMD calculates momentum using a custom RSI of a DEMA-filtered source, delivering a smooth and responsive signal.
🔹 Volatility-Adaptive SD Thresholds
Dynamic upper and lower thresholds adjust in real-time using standard deviation, reducing false positives during low-volatility phases.
🔹 Dual Confirmation Signal Logic
RMD compares both deviation bands to user-defined thresholds to issue high-confidence trend entries.
🔹 Backtesting Integration & Visual Equity Curve
With built-in support for the QuantEdgeB Backtesting Framework, RMD allows seamless strategy validation.
🔹 Clean Visuals & Label Customization
Includes candle coloring, dynamic overlays, signal labels, and optional trend structure plots.
📊 How It Works
1️⃣ Normalized RSI of a DEMA Source
The heart of RMD lies in a momentum oscillator built from:
• 📌 Source Input → A DEMA of price (default 30)
• 📌 Momentum Foundation → RSI calculated from the DEMA output
• 📌 Smoothing Length → Controls the responsiveness of the base signal (default 14)
This creates a stable momentum oscillator less prone to fake-outs during sudden volatility spikes.
2️⃣ Standard Deviation Filtering Engine
RMD employs volatility-weighted SD bands to define statistically meaningful thresholds:
📌 Formula Breakdown:
• NormUp = RSI - SD
• NormDn = RSI + SD
These boundaries adapt based on recent price dispersion. The upper and lower bands dynamically expand or contract depending on market behavior.
3️⃣ Signal Logic & Triggering Conditions
• ✅ Long Signal → NormUp crosses above the long threshold (default: 65)
• ❌ Short Signal → NormDn drops below the short threshold (default: 50)
This approach means signals only occur during statistically significant deviation from mean momentum, making them less frequent but more robust.
✅ Visual Signal Features
• 🔹 Candle coloring based on signal direction (Long/Short)
• 🔹 Label plots on crossover confirmations
• 🔹 Momentum band plots for discretionary or system-based confirmation
👥 Who Should Use It?
✅ Momentum Traders → Identify directional bias with low noise
✅ Swing Traders → Confirm turning points with volatility-adjusted deviation
✅ Quantitative Developers → Integrate into backtested strategies with ease
✅ Range-Trading Specialists → Use SD bands to anticipate overextended moves
⚙️ Customization & Default Settings
🔧 Core Inputs:
• Base RSI Length (Default: 14)
• Source Smoothing (DEMA, Default: 7)
• SD Length (Default: 40) → Controls volatility window
• SD Multiplier (Default: 0.7) → Adjusts sensitivity of deviation thresholds
• Signal Thresholds (L/S Default: 65 Long - 50 Short) → Controls breakout trigger levels
• Color Mode Themes → Six color themes included
• Signal Labels Toggle → Optional signal label plotting
• Backtest Table & Equity Curve Options
📊 Backtest Mode
RMD includes an optional backtest table, enabling traders to assess its historical effectiveness before applying it in live trading conditions.
🔹 Backtest Metrics Displayed:
• Equity Max Drawdown → Largest historical loss from peak equity.
• Profit Factor → Ratio of total profits to total losses, measuring system efficiency.
• Sharpe Ratio → Assesses risk-adjusted return performance.
• Sortino Ratio → Focuses on downside risk-adjusted returns.
• Omega Ratio → Evaluates return consistency & performance asymmetry.
• Half Kelly → Optimal position sizing based on risk/reward analysis.
• Total Trades & Win Rate → Assess historical success rate.
📌 Disclaimer:
Backtest results are based on past performance and do not guarantee future success. Always incorporate real-time validation and risk management in live trading.
🚀 Why This Matters?
✅ Strategy Validation → Gain insight into historical trend accuracy.
✅ Customization Insights → See how different settings impact performance.
✅ Risk Awareness → Understand potential drawdowns before deploying capital.
📌 How to Use RMD in Your Strategy
1️⃣ Momentum Breakout Strategy
✔ Go Long when NormUp > L → Indicates strong upward deviation
✔ Go Short when NormDn < S → Indicates sharp downward momentum
✔ Use SD Mult to control sensitivity and smoothness
2️⃣ Volatility Regime Awareness
✔ In low-volatility → Decrease SD multiplier to catch early signals
✔ In high-volatility → Increase SD multiplier to avoid noise
🔍 Bonus: Extra Trend Structure Plots
RMD includes optional ALMA + multi-EMA trend band overlays:
• Use them to confirm momentum alignment
• Great for hybrid strategies (e.g. trend + momentum)
📌 Conclusion
Relative Momentum Deviation (RMD) by QuantEdgeB offers a clean and adaptive approach to momentum trading by combining a normalized RSI structure with volatility-driven breakout zones.
With built-in signal confirmation, smart filtering, and rich backtest capabilities, RMD excels as a dynamic momentum companion for both discretionary and system traders.
🔹 Key Takeaways:
1️⃣ Adaptive Deviation Zones – Responsive to real-time volatility
2️⃣ Normalized RSI Core – Clean, smoothed momentum insight
3️⃣ Backtest + Visual Toolkit – Strategy-friendly and ready to deploy
📌 Trade with Statistical Precision | Powered by QuantEdgeB
🔹 Disclaimer: Past performance is not indicative of future results.
🔹 Strategic Advice: Always backtest, optimize, and align parameters with your trading objectives and risk tolerance before live trading.
Skrip jemputan sahaja
Hanya pengguna yang diberikan kebenaran oleh penulis mempunyai akses kepada skrip ini dan ini selalunya memerlukan pembayaran. Anda boleh menambahkan skrip kepada kegemaran anda tetapi anda hanya boleh menggunakannya selepas meminta kebenaran dan mendapatkannya daripada penulis — ketarhui lebih lanjut di sini. Untuk lebih butiran, ikuti arahan penulis di bawah atau hubungi QuantEdgeB secara terus.
TradingView tidak menyarankan pembayaran untuk atau menggunakan skrip kecuali anda benar-benar mempercayai penulisnya dan memahami bagaimana ia berfungsi. Anda juga boleh mendapatkan alternatif sumber terbuka lain yang percuma dalam skrip komuniti kami.
Arahan penulis
Amaran: sila baca panduan kami untuk skrip jemputan sahaja sebelum memohon akses.
whop.com/quantedgeb/ 💎
🔹 Unlock our free toolbox:
tradinglibrary.carrd.co/ 🛠️
Disclaimer: All resources and indicators provided are for educational purposes only
Penafian
Skrip jemputan sahaja
Hanya pengguna yang diberikan kebenaran oleh penulis mempunyai akses kepada skrip ini dan ini selalunya memerlukan pembayaran. Anda boleh menambahkan skrip kepada kegemaran anda tetapi anda hanya boleh menggunakannya selepas meminta kebenaran dan mendapatkannya daripada penulis — ketarhui lebih lanjut di sini. Untuk lebih butiran, ikuti arahan penulis di bawah atau hubungi QuantEdgeB secara terus.
TradingView tidak menyarankan pembayaran untuk atau menggunakan skrip kecuali anda benar-benar mempercayai penulisnya dan memahami bagaimana ia berfungsi. Anda juga boleh mendapatkan alternatif sumber terbuka lain yang percuma dalam skrip komuniti kami.
Arahan penulis
Amaran: sila baca panduan kami untuk skrip jemputan sahaja sebelum memohon akses.
whop.com/quantedgeb/ 💎
🔹 Unlock our free toolbox:
tradinglibrary.carrd.co/ 🛠️
Disclaimer: All resources and indicators provided are for educational purposes only