VAR1:=(2*CLOSE+ HIGH+ LOW +OPEN)/5;
A1:=(Ema(VAR1,3) EMA(VAR1,6) EMA(VAR1,12) EMA(VAR1,24))/4;
A2:=EMA(A1,2);
A3:=EMA(A2,2);
A4:=EMA(A3,2);
A5:=EMA(A4,2);
A6:=EMA(A5,2);
A7:=EMA(A6,2);
A8:=EMA(VAR1,2.78)*1.028;
A9:=MA(OPEN,3.2)*1.028;
DUO:=A1 A2 AND A2 A3 AND A3 A4 AND A4 A5 AND A5 A6 AND A6
KONG:=A1 A2 AND A2 A3 AND A3 A4 AND A4 A5 AND A5 A6 AND A6
QYR:=REF(DUO,1)=0;
QIR2:=REF(KONG,1)=0;
中线B:DUO AND QYR,COLORRED,NODRAW;
中线S:KONG AND QIR2,COLORGREEN,NODRAW;
stICKLINE(DUO,REFDATE(HHV(H,130),DATE),REFDATE(LLV(L,100000),DATE),4,0),COLORBLUE;
STICKLINE(KONG,REFDATE(HHV(H,130),DATE),REFDATE(LLV(L,100000),DATE),4,0),COLORGRAY;
STICKLINE(中线B,L*0.91,L*0.94,4,-1),COLORRED;
STICKLINE(中线S,H*1.03,H*1.06,4,-1),COLORGREEN;
DRAWICON(中线B,L*0.92,1);
DRAWICON(中线S,H*1.04,2);
短1:EMA(EMA(A8,2),2),COLORRED,LINETHICK2;
短2:EMA(EMA(A9,2),2),COLORGREEN,LINETHICK2;
安全线:EMA(C,55),DOTLINE,COLORGREEN;
IF(安全线 REF(安全线,1),安全线,DRAWNULL),CIRCLEDOT,COLORRED;
DRAWKLINE(H,O,L,C);
TYP:=(HIGH+LOW+CLOSE)/3;
cci:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
短底:crOSS(CCI,-100),COLORYELLOW,NODRAW;
STICKLINE(短底,C,O,2,0),COLORYELLOW;
STICKLINE(短底,C,O,0,0),COLORMAGENTA;
LOWV:=LLV(LOW,9);
HIGHV:=HHV(HIGH,9);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);
K:=EMA(RSV,3);
D:=MA(K,3);
高抛:CROSS(D,K) AND K =80,COLORGREEN,NODRAW;
STICKLINE(高抛,C,O,2,0),COLORGREEN;
STICKLINE(高抛,C,O,0,0),COLORBLUE;