指导线:EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),,COLORFFFFFF,LINETHICK2;
界:MA(CLOSE,27),COLOR00FFFF,LINETHICK2;
IF(买线 =卖线,界,DRAWNULL),COLORRED,LINETHICK2;
B买:IF(CROSS(指导线,界) OR CROSS(买线,卖线),C,DRAWNULL),COLORMAGENTA,NODRAW;
持仓:IF(买线 =卖线,C,DRAWNULL),COLORRED,NODRAW;
S卖:IF(CROSS(界,指导线) OR CROSS(卖线,买线),C,DRAWNULL),COLORLIGRAY,NODRAW;
空仓:IF(买线 卖线,C,DRAWNULL),COLORGREEN,NODRAW;
DRAWTEXT(CROSS(买线,卖线),界,'○'),LINETHICK2, COLORYELLOW;
DRAWTEXT(CROSS(卖线,买线),界,'▼'),LINETHICK2, COLORGREEN;