AngelAlgo

Expansion/Contraction Indicator (ECI) [Angel Algo]

INTRODUCTION
The Expansion/Contraction Indicator (ECI) is a custom indicator designed to measure the expansion or contraction of price ranges between the open and close of each bar. It helps traders identify periods of increased or decreased volatility in the market. Since trading is most fruitful during volatile market conditions, this indicator provides valuable insights into when volatility increases, signaling the opportune moments to take action.


HOW TO USE

Expansion: When the ECI value is in the green zone, it suggests an expansion in price ranges, indicating increased volatility. This may be a potential signal for traders to expect trend movements or breakouts.
Contraction: When the ECI value falls outside the green zone, it indicates a contraction in price ranges, implying reduced volatility. This may signal potential consolidation or ranging periods in the market.
During contraction periods, it is advisable to exercise patience and await clear signals. Market cycles dictate that low-volatility contractions are often followed by high-volatility expansion periods, presenting opportunities for significant price movements.

Visualization:
Expansion Area: the area on the indicator chart filled with green. It has duller and brighter parts that indicate the level of expansion. The duller part corresponds to a low or beginning expansion.
ECI Dots: The ECI dots are plotted as circles on the chart. The dots are colored green if the ECI value is above the lower threshold, indicating an expansion. If the ECI value is below the lower threshold, the dots are colored red to indicate a contraction.

Alerts (Optional): The ECI indicator can generate alerts for expansions and contractions. By default, alerts are enabled. An expansion alert is triggered when the ECI value crosses above the upper threshold. A contraction alert is triggered when the ECI value crosses below the lower threshold.


SETTINGS
Period: determines the number of bars used to calculate the exponential moving average (EMA) of the price range. The default value is 14, but it can be set between 1 and 200. Higher values smooth out the indicator but may delay signals.
Lower Threshold: defines the level below which the ECI value indicates a contraction in price ranges, implying reduced volatility. The default value is 0.5.


CALCULATION
The indicator calculates the range between the open and close of each bar (ocRange). It then calculates the EMA of the range (emaRange) using the specified period. The ECI value is obtained by dividing the ocRange by the emaRange. Threshold Levels: The indicator includes two threshold levels for identifying expansions and contractions: a. Upper Threshold: Default value is 3.0. b. Lower Threshold: Default value is 0.5. The middle line (mL) represents the ECI value of 1.0, which indicates a neutral state, when the volatility in the market corresponds to its average value.

Access our exclusive tools at: angelalgo.com

Join our community via discord.gg/FGUTfkmYbW

All content from AngelAlgo is for informational and educational purposes only. Please note that past performance does not guarantee future results.
Mã nguồn mở

Với tinh thần TradingView, tác giả của tập lệnh này đã xuất bản nó dưới dạng mã nguồn mở, vì vậy các nhà giao dịch có thể hiểu và xác minh nó. Chúc mừng tác giả! Bạn có thể sử dụng mã này miễn phí, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

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.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?