OPEN-SOURCE SCRIPT

CCI with Divergences

This indicator identifies bullish and bearish divergences using the Commodity Channel Index (CCI). It is designed to help traders visualize divergence points with trendlines and labels, making it easier to spot potential market reversals.

Key Features:

Detects Bullish Divergences (CCI higher low while price forms a lower low).
Detects Bearish Divergences (CCI lower high while price forms a higher high).
Plots trendlines to connect divergence points for clear visualization.
Labels the divergence points with "Bull" or "Bear" for added clarity.
Includes alerts for both bullish and bearish divergences, so you never miss a signal.
How to Use:

Add this indicator to your chart and look for divergences in conjunction with other analysis methods.
Use the alerts to stay informed about new divergences as they form.
Disclaimer: This script is for educational purposes only and should not be considered financial advice. Trading in financial markets involves substantial risk and may not be suitable for all investors. Always do your own research and consult a professional financial advisor before making any trading decisions.
Commodity Channel Index (CCI)Oscillators

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer