TYP:=(HIGH+LOW+CLOSE)/3;
cci:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
boll:=MA(CLOSE,20);
UPPER:=BOLL+2*STD(CLOSE,20);
LOWER:=BOLL-2*STD(CLOSE,20);
MA1:=MA(CLOSE,5);
优化抄底:(CCI<-200 OR J<0 OR C
DRAWTEXT(优化抄底,优化抄底,'抄'),COLOR00FFFF;
优化逃顶:(CCI>200 OR J>100 OR MA1*1.1
DRAWBAND(0>优化逃顶,RGB(0,0,0),0<优化逃顶,RGB(100,110,0));
DRAWTEXT(优化逃顶,优化逃顶,'逃'),COLORFFFF00;