OPEN-SOURCE SCRIPT
Aggiornato

P-Motion Trend | QuantEdgeB

3 231
⚡ Introducing P-Motion Trend (PMT) by QuantEdgeB

🧭 Overview
P-Motion Trend is a refined trend-following framework built for modern market dynamics. It combines DEMA filtering, percentile-based smoothing, and volatility-adjusted envelopes to create a clear, noise-filtered trend map directly on your chart.
This overlay indicator is engineered to detect breakout zones, trend continuation setups, and market regime shifts with maximum clarity and minimum lag.
Whether you're swing trading crypto, managing intraday FX moves, or positioning in equities — P-Motion Trend adapts, aligns, and simplifies.

🧠 Core Logic
1️⃣ DEMA Filtering Core
The input source is processed through a Double EMA to reduce lag while retaining trend sensitivity.
2️⃣ Percentile Median Smoothing
To eliminate short-lived spikes, the DEMA output is passed through a percentile median rank — effectively smoothing without distortion.
3️⃣ Volatility Envelope with EMA Basis
An exponential moving average (EMA) is applied to the smoothed median, and standard deviation bands are wrapped around it:
• ✅ Long Signal → Price closes above the upper band
• ❌ Short Signal → Price closes below the lower band
• ➖ Inside Band = Neutral
These bands expand/contract with market volatility — protecting against false breakouts in quiet regimes and adapting quickly to strong moves.

📊 Visual & Analytical Layers
• 🎯 Bar Coloring: Color-coded candles highlight trend state at a glance.
• 📈 EMA Ribbon Overlay: A dynamic ribbon of EMAs helps confirm internal momentum and detect transitions (trend decay or acceleration).
• 🔹Gradient Fill Zones: Visually communicates squeeze vs. expansion phases based on band width.

⚙️ Custom Settings
• EMA Length – Defines the core trend path (default: 21)
• SD Length – Controls volatility band smoothing (default: 30)
• SD Mult Up/Down – Sets thresholds for breakout confirmation (default: 1.5)
• DEMA Filter Source – Raw input used for trend processing
• DEMA Filter Length – Sets DEMA smoothing (default: 7)
• Median Length – Percentile-based smoothing window (default: 2)

📌 Use Cases
✅ Trend Confirmation
Use PMT to confirm whether the price action is structurally valid for trend continuation. A close above the upper band signals entry alignment.
🛡️ Reversal Guard
Avoid early reversion entries. PMT keeps you in-trend until price truly breaks structure.
🔍 Momentum Visualizer
With multiple EMA bands, the indicator also functions as a momentum envelope to spot divergence between price and smoothed trend flow.

🔚 Conclusion
P-Motion Trend is a hybrid volatility + trend system built with precision smoothing, dynamic filtering, and clean visual output. It balances agility with stability, helping you:
• Filter out price noise
• Enter with structure
• Stay in trades longer
• Exit with confidence

🧩 Summary of Benefits
• 🔹 Lag-minimized trend structure via DEMA core
• 🔹 Real-time volatility band adaptation
• 🔹 Gradient visual feedback on compression/expansion
• 🔹 EMA ribbon assists in phase detection
• 🔹 Suitable for all markets & timeframes

📌 Disclaimer: Past performance is not indicative of future results. No trading strategy can guarantee success in financial markets.
📌 Strategic Advice: Always backtest, optimize, and align parameters with your trading objectives and risk tolerance before live trading.

Note di rilascio
added color transparency settings
Note di rilascio
Label display fixed

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.