CMF

Chaikin Money Flow
Description
Developed by Marc Chaikin, the Chaikin Money Flow oscillator is calculated from the daily readings of the Accumulation/Distribution Line. The basic premise behind the Accumulation Distribution Line is that the degree of buying or selling pressure can be determined by the location of the close relative to the high and low for the corresponding period (Closing Location Value). There is buying pressure when a stock closes in the upper half of a period's range and there is selling pressure when a stock closes in the lower half of the period's trading range. The Closing Location Value multiplied by volume forms the Accumulation/Distribution Value for each period.
Category
Oscillator Indicators
Parameters
N ( Default: 21 Min: 1 Max: 100 )
Chart Script

D:= (HIGH-LOW);
AD:= IF(D==0,0,((CLOSE-LOW)-(HIGH-CLOSE))/D*VOL);
MV := MA(VOL,N);
CMF: IF(MV==0,0,MA(AD,N)/MV),ColorGray;
0,ColorGray;
FillRgn(CMF > 0, CMF, 0), Brush#50208000;
FillRgn(CMF < 0, CMF, 0), Brush#50802000;