本指标为CCI的变异指标,上下界缩小了一倍,并且设计了正反两条线,分别为多空两条线,以利于参考。用法需要自己领悟。
STICKLINE(C>0,100,100,1,0),COLORBLUE;
STICKLINE(C>0,50,50,1,0),COLORMAGENTA;
STICKLINE(C>0,0,0,3,0),COLORYELLOW;
STICKLINE(C>0,-50,-50,1,0),COLORFF0080;
STICKLINE(C>0,-100,-100,1,0),COLOR00BB00;
BC:=((H*0.5+L*0.5)*0.382+(O*0.382+C*0.618)*0.618);
LJ:=IF(INDEXC=C,BC,(BC+AMOUNT/(V*100))/2);
H18:=EMA(HHV(LJ,(18*0.691)),3);
L18:=EMA(LLV(LJ,18*1.309),3);
H25:=EMA(HHV(LJ,(25*0.691)),3);
L25:=EMA(LLV(LJ,25*1.309),3);
H48:=EMA(HHV(LJ,48*0.691),3);
L48:=EMA(LLV(LJ,48*1.309),3);
H75:=EMA(HHV(LJ,75*0.691),3);
L75:=EMA(LLV(LJ,75*1.309),3);
H123:=EMA(HHV(LJ,123*0.691),3);
L123:=EMA(LLV(LJ,123*1.309),3);
HH:=(H18+H25+H48+H75+H123)/5;
LL:=(L18+L25+L48+L75+L123)/5;
生命:=((MA(LJ,18)+MA(LJ,25)+MA(LJ,48)+MA(LJ,75)+MA(LJ,123))/5+HH+LL)/3;
上轨:=生命+((STD(LJ,48*0.691)+STD(LJ,48)+STD(LJ,48*1.309))/3);
多:(LJ-上轨)/(0.03*AVEDEV(LJ,N)),COLORWHITE;
辅助线:EMA(多,3),COLORGREEN;
IF(多<-50,多,DRAWNULL),COLORGRAY;
IF(多>0,多,DRAWNULL),COLORRED;
空:-(LJ-MA(LJ,N))/(0.03*AVEDEV(LJ,N)),COLORAAAA00;