N:=26;
P:=2;
MID : MA(CLOSE,N),COLORYELLOW,LINETHICK2;
UPPER: MID + P*STD(CLOSE,N),LINETHICK1,COLORGREEN;
LOWER: MID - P*STD(CLOSE,N),LINETHICK1,COLORRED;
高:SMA(H,21,2)*1.092,POINTDOT,COLORFFFFFF;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd:=(DIF-DEA)*2;
WY1001:=(2*CLOSE+HIGH+LOW)/4;
WY1002:=EMA(WY1001,4);
WY1003:=EMA(WY1002,4);
WY1004:=EMA(WY1003,4);
XYS0:=(WY1004-REF(WY1004,1))/REF(WY1004,1)*100;
XYS1:=MA(XYS0,2);
XYS2:=MA(XYS0,1);
XG:=crOSS(XYS1,XYS2) AND XYS1>=0 AND EXIST(C>UPPER,6) AND rsi>85;
DRAWTEXT(XG,UPPER*1.03,'卖'),COLORGREEN;
XG1:=CROSS(XYS2,XYS1) AND CROSS(MA(CLOSE,4),MA(CLOSE,10));
DRAWTEXT(XG1,LOWER*0.94,'买'),COLORRED;
Q12:=MacDREF(MACD,2) AND MACD<=DIF*0.3 AND MACD>0;
DRAWTEXT(Q12 AND EXIST(RSI>80,12),H*1.025,'卖'),COLORCYAN;
M1:=C>REF(C,1) AND V
DRAWTEXT(M1 AND EXIST(Q12,5),H*1.01,'缩'),COLORWHITE;
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;
TYP:=(HIGH+LOW+CLOSE)/3;
cci:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
BB:=CROSS(K,D) AND CROSS(C,MA(C,13)) AND CROSS(CCI,-100) AND C