N:=14;
N1:=36;
G:=15;
Z:=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));
CCI2:=(P-MA(P,N1))*1000/(G*AVEDEV(P,N1));
B1:=BArslAST(CCI1=LLV(CCI1,60));
DD:=CREF(CCI1,B1);
机会难得:=crOSS(CCI1,CCI2) AND REF(CCI1,1)=LLV(CCI1,70);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
kd:=CROSS(K,D);
XG:机会难得 AND KD;