大智慧CCI背离指标公式

N:=4;N1:=36;G:=15;Z:=5;

变动速率:"roc(12,6).MAROC"*Z;

DD1:=REF(变动速率,1);

P:=(HIGH+LOW+CLOSE)/3;

{www.zhibiaow.com 指标网_大智慧股票指标公式}

cci1:(P-MA(P,N))*1000/(G*AVEDEV(P,N)),COLORCYAN;

CCI2:=(P-MA(P,N1))*1000/(G*AVEDEV(P,N1));

B1:=BArslAst(CCI1=LLV(CCI1,60));

DD:=C<REF(C,B1) AND CCI1>REF(CCI1,B1);

底背离:IF(DD,100,0),LINETHICK2,COLORRED;