OPEN-SOURCE SCRIPT

UVR Channels

업데이트됨
UVR CHANNELS: A VOLATILITY-BASED TREND ANALYSIS TOOL

PURPOSE
UVR Channels are designed to dynamically measure market volatility and identify key price levels for potential trend reversals. The channels are calculated using a unique volatility formula(UVR) combined with an EMA as the central reference point. This approach provides traders with a tool for evaluating trends, reversals, and market conditions such as breakouts or consolidations.

CALCULATION MECHANISM

1. Ultimate Volatility Rate (UVR) Calculation:
The UVR is a custom measure of volatility that highlights significant price movements by comparing the extremes of current and previous candles.

Volatility Components:
Two values are calculated to represent potential price fluctuations:
The absolute difference between the current candle's high and the previous candle's low:

Volatility Component 1=∣high−low[1]∣

The absolute difference between the previous candle's high and the current candle's low:

Volatility Component 2=∣high[1]−low∣

Volatility Ratio:
The larger of the two components is selected as the Volatility Ratio, ensuring the UVR captures the most significant movement:

Volatility Ratio=max⁡(Volatility Component 1,Volatility Component 2)

Smoothing with SMMA:
To stabilize the volatility calculation, the Volatility Ratio is smoothed using a Smoothed Moving Average (SMMA) over a user-defined period (e.g., 14 candles):

UVR= (UVR(Previous) × (Period−1))+Volatility Ratio)/Period

2. Band Construction:
The UVR is integrated into the band calculations by using the Exponential Moving Average (EMA) as the central line:

Central Line (EMA):
The EMA is calculated based on closing prices over a user-defined period (e.g., 20 candles).

Upper Band:
The upper band represents a dynamic resistance level, calculated as:

Upper Band=EMA+(UVR × Multiplier)

Lower Band:
The lower band serves as a dynamic support level, calculated as:

Lower Band=EMA−(UVR × Multiplier)

3. Role of the Multiplier:
The Multiplier adjusts the width of the bands based on trader preferences:

Higher Multiplier: Wider bands to capture larger price swings.
Lower Multiplier: Narrower bands for tighter market analysis.

FEATURES AND USAGE

Dynamic Volatility Analysis:
The UVR Channels expand and contract based on real-time market volatility, offering a dynamic framework for identifying potential price trends.
Expanding Bands: High market volatility.
Contracting Bands: Low volatility or consolidation.

Trend Identification:
Price consistently near the upper band indicates a strong bullish trend.
Price near the lower band signals a bearish trend.

Trend Reversal Signals:
Price reaching the upper band may signal overbought conditions, while price touching the lower band may signal oversold conditions.

Breakout Potential:
Narrow bands often precede significant price breakouts, making UVR Channels a useful tool for spotting early breakout conditions.

DIFFERENCES FROM BOLLINGER BANDS
Unlike Bollinger Bands, which rely on standard deviation to measure volatility, the UVR Channels use a custom volatility formula based on price extremes (highs and lows). This approach adapts to market behaviour in a unique way, providing traders with an alternative and accurate view of volatility and trends.

INPUT PARAMETERS

Volatility Period:
Determines the number of periods used to smooth the volatility ratio. A higher value results in smoother bands but may lag behind sudden market changes.

EMA Period:
Controls the calculation of the central reference line.

Multiplier:
Adjusts the width of the bands. Increasing the multiplier widens the bands, capturing larger price movements, while decreasing it narrows the bands for tighter analysis.

VISUALIZATION

Purple Line: The EMA (central line).
Red Line: Upper band (dynamic resistance).
Green Line: Lower band (dynamic support).
Shaded Area: Fills the space between the upper and lower bands, visually highlighting the channel.
릴리즈 노트
Default Values are updated
Bollinger Bands (BB)Exponential Moving Average (EMA)Volatility

오픈 소스 스크립트

진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?


또한 다음에서도:

면책사항