OPEN-SOURCE SCRIPT
Mis à jour

Rolling Multi-Day EMA + VR1 DEMABar

180
Rolling Multi-Day EMA + VR1 DEMABar Indicator
This indicator combines rolling multi-day exponential moving averages (EMAs) with VR1 DEMABar logic to provide insights into price trends, volume dynamics, and potential reversal signals.

Section 1: Rolling Multi-Day EMA Logic
Purpose: Calculates EMAs based on a rolling trading day length, adapting to different timeframes and instrument types (Futures or Stocks).
Trading Day Lengths: Adjusts dynamically based on the chart timeframe:
1-minute, 3-minute, 5-minute, and 15-minute charts have pre-defined lengths for a "trading day."
Multi-day EMAs are calculated for Half-Day, 1-Day, 2-Day, 3-Day, 4-Day, and 5-Day periods.
The EMAs are color-coded with a gradient from green to purple for clear trend visualization.
Section 2: VR1 DEMABar Logic
Purpose: Identifies high-volume price movements and engulfing patterns that may signal potential reversals.
Volume-to-Range Ratio: Analyzes the ratio of volume to price range and applies two EMAs to detect significant activity.
Threshold-Based Bar Coloring: Highlights bars above a threshold in yellow to emphasize high-volume anomalies.
Engulfing Pattern Detection: Identifies bullish and bearish engulfing patterns, adjusting the background color:
Green Background: Bullish engulfing pattern (potential upward reversal).
Red Background: Bearish engulfing pattern (potential downward reversal).
This indicator provides a blend of trend-following and volume-based anomaly detection, helping traders spot potential trend shifts and key volume-driven movements efficiently.
Notes de version
Added 4 hour EMA
Notes de version
Added toggle for EMA/SMA on UI (Input). Default remains EMA.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.