GG:=expma(CLOSE,7);
HH:=EXPMA(CLOSE,50);
II:=vol/REF(VOL,1)>2;
JJ:=CLOSE/REF(CLOSE,1)>1.02;
EE:=CLOSE>REF(CLOSE,1);
FF:=VOL/REF(VOL,1)>2;
EXP7:EXPMA(CLOSE,7),COLORWHITE,LINETHICK1;
EXP50:EXPMA(CLOSE,50),COLORYELLOW,LINETHICK1;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd:=(DIF-DEA)*2,COLORSTICK;
DRAWTEXT((GG<HH AND II AND EE),L,'★一爬点'),COLORYELLOW;
DRAWTEXT(((crOSS(DIF,DEA)) AND GG<HH AND II AND EE),L,'★一爬点'),COLORRED;
DRAWTEXT((CROSS(GG,HH) AND JJ),L,'★三爬点'),COLORBLUE;
G1:=CLOSE>REF(CLOSE,1);
G2:=REF(CLOSE,1)<REF(CLOSE,2);
G3:=REF(CLOSE,2)<REF(CLOSE,3);
G4:=G1 AND G2 AND G3;
DRAWTEXT(((GG>HH) AND JJ AND G4 AND FF),L,'★三爬点'),COLORRED;
STICKLINE(C<0.905*REF(C,1),C,O,1.5,0),COLORWHITE;
STICKLINE(C>1.095*REF(C,1),C,O,1.5,0),COLORFFCCFF;
止损:=C-(MAX(MAX((HIGH-LOW),Abs(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW))),NODRAW;
止:=DRAWTEXT(DYNAINFO(7)>止损 AND ISLASTBAR,止损,'----------------') COLORWHITE;