Login / Register
Add a review
Log in
Sign UP
[bws_google_captcha]

The Commodity Channel Index(CCI) indicator, built on a tick price chart.

At startup, it is necessary to wait for the arrival of the required amount of tick data for calculations.

Parameters:

  • period – the number of single periods used to calculate the indicator.
  • calculated bar – the number of bars on the chart for calculating the indicator.

Then follow the parameters that regulate the weights of the CCI oscillator signals (from 0 to 100). Their description can be found in the MQL5 Reference Book in the section Signals of the Commodity Channel Index oscillator.

  • the oscillator has required direction – the value of the oscillator on the analyzed bar is growing/falling.
  • reverse behind the level of overbuying/overselling – a reversal after the oversold/overbought level.
  • divergence of the oscillator and price-divergence.
  • double divergence of the oscillator and price – double divergence.

Buffer numbers: 0 – CCI_LINE, 1 – SIGNAL_UP, 2 – SIGNAL_DOWN.

Add review
Reviews ( 0 ):