MA1:MA(CLOSE,20),COLORYELLOW,LINETHICK2;
MA2:IF(MA1>=REF(MA1,1),MA1,DRAWNULL),COLORYELLOW,LINETHICK2;
MA3:IF(REF(MA1,1)>MA1,MA1,DRAWNULL),COLORBLUE,LINETHICK2;
VA1:=EMA(C,5);
VA2:=EMA(C,20);
DRAWTEXT(CROSS(VA1,VA2),VA1*0.97,'加碼'),COLOR00FF3A;
選手:=MA(C,2);
箱頂:MA(REF(HHV(C,30),1),2),LINETHICK2,COLORFFFFE5;
箱底:MA(REF(LLV(C,30),1),2),LINETHICK2,COLORGREEN;
T4:=CROSS(選手,箱底) AND 箱頂/箱底>110/100;
T5:=CROSS(箱頂,選手) AND 箱頂/箱底>110/100;
VAR1:=(C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=SMA(VAR3,3,1);
DRAWTEXT(CROSS(VAR4,VAR3) AND VAR4>75,H*1.03,'減倉'),COLORYELLOW;
DRAWTEXT(CROSS(VAR3,VAR4) AND VAR3<40,C*0.97,'低吸'),COLORFFFFE5;
STICKLINE((C<O),HIGH,LOW,0,0),COLORCYAN;
STICKLINE((C<O),OPEN,CLOSE,1,0),COLORCYAN;
STICKLINE((C>=O),HIGH,LOW,0,0),COLORRED;
STICKLINE((C>=O),OPEN,CLOSE,1,1),COLORRED;