通达信买卖线主图指标公式
2020/3/26 18:42:57
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
DRAWKLINE(H,O,L,C);
指导线:=EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2);
买:IF(CROSS(指导线,界) OR CROSS(买线,卖线),C,DRAWNULL),COLORMAGENTA,NODRAW;
{www.tou18.cn 投股票网_最新股票指标公式}
卖:IF(CROSS(界,指导线) OR CROSS(卖线,买线),C,DRAWNULL),COLORLIGRAY,NODRAW;
K:=(C+H+L)/3;
D:=MA(K,4);
DRAWTEXT(REF(C,1)>D AND C<D AND D>REF(D,1),H*1.02, '卖');
DRAWTEXT(REF(C,1)<D AND C>D AND D<REF(D,1),L*0.98, '买'),COLORWHITE;
投股票 网 www.tou18. cn
股市公式下载推荐