N:=17;N1:=7;N2:=69;LH:=79;
DRAWGBK(CLOSE=CLOSE,STRIP(RGB(200,150,150),RGB(30,20,0),1));
M3: EMA(CLOSE,3);
M8: EMA(CLOSE,8);
M13: EMA(M8,13);
M62: EMA(M8,62);
Var1:=EMA(M13,62);
M81: EMA(M62,81);
M144: EMA(Var1,144);
Var2:=(CLOSE+HIGH+LOW)/3;
Var3:=EMA(Var2,10);
Var4:=REF(Var3,1);
STICKLINE(Var3>Var4,Var3,Var4,15,0),colorred;
STICKLINE(Var3
Var6:=MA(CLOSE,N)+2*STD(CLOSE,N);
Var7:=REF(CLOSE,1);
Var8:=SMA(MAX(CLOSE-Var7,0),N1,1)/SMA(Abs(CLOSE-Var7),N1,1)*100;
Var9:=crOSS(N2,Var8);
VarB:=(2*CLOSE+HIGH+LOW)/4;
VarC:=LLV(LOW,34);
VarD:=HHV(HIGH,34);
VarE:=EMA((VarB-Var1)/(Var5-Var1)*100,7);
VarF:=EMA(0.667*REF(VarE,1)+0.333*VarE,5);
Var10:=MA(CLOSE,80)-MA(CLOSE,10)/3;
DRAWTEXT(IF(CLOSE
Var12:=SMA(MAX(CLOSE-Var11,0),N,1)/SMA(ABS(CLOSE-Var11),N,1)*100;
DRAWICON(CROSS(LH,Var12),HIGH*1.02,1);
DRAWTEXT(CROSS(LH,Var12),HIGH*1.03,'理想逃顶');