以下是通达信波段主图指标(无源码的请下载附件导入)
通达信波段主图指标
源码
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
指导线: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;
714155703.jpg
|