X_1:=1221231;
X_2:=IF(DATE<X_1,1,DRAWNULL);
MA20:MA(CLOSE,20)*X_2,COLORRED,LINETHICK4;
MA60:MA(CLOSE,60)*X_2,COLORBLUE,LINETHICK4;
STICKLINE(CLOSE/REF(CLOSE,2)>1.2,CLOSE,OPEN,1,0),COLORMAGENTA;
STICKLINE(CLOSE>REF(HIGH,2) AND LOW<REF(OPEN,2) AND CLOSE>OPEN,CLOSE,OPEN,1,0),COLORYELLOW;
STICKLINE(LOW<REF(LOW,2) AND HIGH>REF(OPEN,2) AND CLOSE<OPEN,CLOSE,OPEN,1,0),COLORBLUE;
DRAWLINE(HIGH>=HHV(HIGH,5),HIGH,LOW<=LLV(LOW,5),LOW,0),COLORA00000,LINETHICK2;
DRAWLINE(LOW<=LLV(LOW,5),LOW,HIGH>=HHV(HIGH,5),HIGH,0),COLORMAGENTA,LINETHICK2;
X_3:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
X_4:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);