Skip to content
All library documents

CCI Divergence Indicator for Bullish and Bearish Signals

Article MQL5 code base

Summary

This document describes a custom indicator that plots the Commodity Channel Index in a separate pane and marks detected divergences both there and on the price chart. Bullish and bearish divergence marks use configurable colors, allowing the two signal directions to be distinguished visually.

The listed settings are the CCI lookback period, the price input used in its calculation, and the colors for bullish and bearish arrows and lines. The description explains the indicator’s display and configuration, but does not define how divergences are detected, provide entry or exit rules, or report performance tests. Divergence marks should therefore be treated as visual analysis cues rather than evidence of a profitable trading method.

Key ideas

  • The indicator plots CCI in a separate chart pane.
  • It marks bullish and bearish divergences on both the indicator pane and price chart.
  • Users can configure the calculation period, applied price, and signal colors.
  • The document gives no detection details, trading rules, or performance evidence.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.