OPEN-SOURCE SCRIPT
Telah dikemas kini

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.
Nota Keluaran
Added 4 hour EMA
Nota Keluaran
Added toggle for EMA/SMA on UI (Input). Default remains EMA.

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.