买线:=EMA(C,13);
卖线:=EMA(SLOPE(C,24)*20+C,55);
STICKLINE(买线 =卖线,REFDATE(HHV(H,0),DATE),REFDATE(LLV(L,0),DATE),6,0),COLOR001050;
STICKLINE(买线 卖线,REFDATE(HHV(H,0),DATE),REFDATE(LLV(L,0),DATE),6,0),COLOR404050;
DRAWKLINE(H,O,L,C);
指导:=EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,13))/4,2);
持仓:IF(买线 =卖线,C,DRAWNULL),COLORRED,NODRAW;
空仓:IF(买线 卖线,C,DRAWNULL),COLORGREEN,NODRAW;
A:= KDJ.K#DAY
B:= KDJ.D#DAY