Author: Andrey N. Bolkonsky
Candlestick Index (CSI, based on Candlestick Momentum Indicator) is described by William Blau in the book "Momentum, Direction, and Divergence: Applying the Latest Momentum Indicators for Technical Analysis".
The values of Candlestick Index are normalized (price range) and mapped into the [–100,+100] interval. The positive values of CSI correspond to overbought states of the market, the negative values correspond to the oversold states of the market.

Candlestick Index by Wiliam Blau
Calculation:
Candlestick Index is calculated by formula:
100 * EMA(EMA(EMA( cmtm(price1,pric2,q) ,r),s),u) 100 * CMtm(price1,pric2,q,r,s,u)
CSI(price1,price2,q,r,s,u) = –––––––––––––––––––––––––––––––––––––––––––– = ––––––––––––––––––––––––––––––––––
EMA(EMA(EMA( HH(q)-LL(q) ,r),s),u) EMA(EMA(EMA( HH(q)-LL(q) ,r),s),u)
if EMA(EMA(EMA(HH(q)-LL(q),r),s),u)=0, then CSI(price1,price2,q,r,s,u)=0
when:
Translated from Russian by MetaQuotes Ltd.
Original code: /ru/code/379
Candlestick Momentum Index Blau_CMI
Candle Momentum Index (CMI) Indicator by William Blau.
Candlestick Momentum Blau_CMtm
Candlestick Momentum Indicator by William Blau.
Ergodic CMI-Oscillator Blau_Ergodic_CMI
Ergodic CMI-Oscillator by Willam Blau.
Ergodic CSI-Oscillator Blau_Ergodic_CSI
Ergodic CSI-Oscillator by William Blau.