OPEN-SOURCE SCRIPT
Cập nhật

Rolling Multi-Day EMA + VR1 DEMABar

456
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.
Phát hành các Ghi chú
Added 4 hour EMA
Phát hành các Ghi chú
Added toggle for EMA/SMA on UI (Input). Default remains EMA.
Phát hành các Ghi chú
4-Hour MA Color-Coding -

Previous Version: The 4-Hour MA was a single fixed color.
New Version: The 4-Hour MA is now light blue when above the Half-Day MA and yellow when below the Half-Day MA.


Cloud Fill Between Half-Day and 4-Hour

Previous Version: The fill between the Half-Day MA and 4-Hour MA was a two-tone fill (green above, red below).
New Version: The fill color now matches the 4-Hour MA color (light blue if the 4-Hour is above, yellow if below).


1-Day MA Line Style

New Version: The 1-Day MA is now defaulted to a solid white line.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.