V0:=VOL*(O+C+H+L)/4;
MA1:=CLOSE;
MA2:=EMA(V0,20)/EMA(VOL,20);
MA30: EXPMA(CLOSE,30) , colorgreen;
MA60: EXPMA(CLOSE,60),COLORFF0099;
MA144: MA(CLOSE,144) , colorred;
STICKLINE(MA2>=REF(MA2,1),REFDATE(HHV(H,60),DATE),REFDATE(LLV(L,100),DATE),5,0),
COLOR600020;
STICKLINE(MA2<REF(MA2,1) AND MA60<REF(MA1,1),REFDATE(HHV(H,60),DATE),REFDATE(LLV(L,100),DATE),5,0),
COLOR404050;
DRAWKLINE(H,O,L,C);
界线:EMA(V0,17)/EMA(VOL,17),coloryellow,LINETHICK2;
B买:IF(CROSS(MA1,MA2),C,DRAWNULL),colormagenta,NODRAW;
持仓:IF(MA2>=REF(MA2,1),C,DRAWNULL),colorred,NODRAW;
S卖:IF(CROSS(MA2,MA1),C,DRAWNULL),colorligray,NODRAW;
空仓:IF(MA2<REF(MA2,1),C,DRAWNULL),colorgreen,NODRAW;
DRAWICON(CROSS(REF(MA2,1),MA2),H,2);
DRAWICON(CROSS(MA2,REF(MA2,1)),L,1);