N:=4;N1:=36;G:=15;Z:=5;
变动速率:"ROC(12,6).MAROC"*Z;
DD1:=REF(变动速率,1);
P:=(HIGH+LOW+CLOSE)/3;
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;