VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VAR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
VAR6:=(VAR3+VAR4+VAR5)/3;
VAR7:=EMA(VAR6,5);
指标:=EMA(EMA(VAR3,5),5)*3, COLORSTICK;
VAR8:=IF(VAR6 =-20,10,0);
VAR9:=HHV(VAR8,10);
STICKLINE(VAR8=10,20,10,5,0),COLOR6666FF;
VARA:=IF(VAR9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);
DIF:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100,COLORWHITE,LINETHICK1;
DEA:=EMA(DIF,9),COLORGREEN,LINETHICK1;
MACD买卖:(DIF-DEA)*0.666,COLORSTICK;
换手:=HSL*100,COLORGREEN;
买:=(ZIG(3,5) REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1) =REF(ZIG(3,5),2)) AND (REF(ZIG
(3,5),2) =REF(ZIG(3,5),3));
卖:=(ZIG(3,5) REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1) =REF(ZIG(3,5),2)) AND (REF(ZIG
(3,5),2) =REF(ZIG(3,5),3));
STICKLINE((买=1),(-0.02),0,1,0),COLOR0000FF;
DRAWTEXT((买=1),(-0.02),'买'),COLOR0000FF;
STICKLINE((卖=1),0.02,0,1,0),COLOR00FF00;
DRAWTEXT((卖=1),0.02,'卖'),COLOR00FF00;