{指标介绍:筹码集中度指标}{九毛八公式指标网www.9m8.cn}
DRAWTEXT_FIX(C O,0.0,0.1,0,'股价下降+SCR上升=主力建仓'),COLORRED; {COLORCCCC00;}
DRAWTEXT_FIX(C O,0.2,0.1,0,'股价上升+SCR上升=主力拉升'),COLORYELLOW; {COLORCCCC00;}
DRAWTEXT_FIX(C O,0.0,0.2,0,'股价下降+SCR下降=主力出货'),COLORRED; {COLORCCCC00;}
DRAWTEXT_FIX(C O,0.2,0.2,0,'股价上升+SCR下降=主力出货'),COLORYELLOW; {COLORCCCC00;}
DRAWTEXT_FIX(C O,0.0,0.3,0,'股价下降+SCR横盘=主力洗盘'),COLORRED; {COLORCCCC00;}
P1:=90;
A:=P1+(100-P1)/2;
B:=(100-P1)/2;
CC:=COST(A);
DD:=COST(B);
SCR:(CC-DD)/(CC+DD)*100/2;