九毛八公式指标
请老师做两个公式,分别是CCI1上穿0轴时预警及CCI1上穿100轴的预警公式,谢谢!!!!!! (N 2 120 14, N1 2 360 36, G 1 60 15, Z 1 100 5) ROC:=100*(CLOSE-REF(CLOSE,12))/REF(CLOSE,12); MAROC:MA(ROC,6); 变动速率:=ROC/MAROC*Z; P:=(HIGH+LOW+CLOSE)/3; CCI1:(P-MA(P,N))*1000/(G*AVEDEV(P,N)),COLORRED; CCI2:(P-MA(P,N1))*1000/(G*AVEDEV(P,N1)),COLORGREEN; B1:=BARSLAST(CCI1=LLV(CCI1,60)); DD:=CREF(CCI1,B1); 底背离:IF(DD,100,0),LINETHICK2,COLORRED; 机会难得:IF(CROSS(CCI1,CCI2) AND REF(CCI1,1)=LLV(CCI1,70),150,0),LINETHICK2,COLORYELLOW; RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:SMA(RSV,3,1)COLORFF00FF,LINETHICK2; D:SMA(K,3,1); KD:CROSS(K,D);
公式模块:
N:=14;G:=15;
P:=(HIGH+LOW+CLOSE)/3; cci1:=(P-MA(P,N))*1000/(G*AVEDEV(P,N)); crOSS(CCI1,100);