通达信附图指标致命出击指标通不过的问题
2019/12/9 18:57:36
公式编写说明:
DIFF:=EMA(CLOSE,34)-EMA(CLOSE,55),COLORFFOOFF,LINETHICK1;DEA:=EMA(DIFF,13),COLOROODDFF,LINETHICK1;MACD:=2*(DIFF-DEA),COLORSTICK;TYP:=(HIGH+LOW=CLOSE)/3;CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));AA:=CROSS(CCI,-70);MM:=MACD>REF(MACD,1)AND MACD>0 ANDCLOSE>OPEN;dd:AA AND MM,NODRAW,COLORFFOOFF;MA1:=MA(CLOSE,5);MA3:=MA(CLOSE,20);一穿三:=MA1>O AND MA2>O AND MA3>O AND MA1<C AND MA2<C AND MA3<C AND CLOSE>OPEN;一穿三 AND dd ;DRAWTEXT(一穿三, dd*1.13,'←致命出击');coloryellow;
公式源码回答:
DIFF:=EMA(CLOSE,34)-EMA(CLOSE,55),COLORFF00FF,LINETHICK1;
DEA:=EMA(DIFF,13),COLOR00DDFF,LINETHICK1;
MACD:=2*(DIFF-DEA),COLORSTICK;
TYP:=(HIGH+LOW=CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
AA:=CROSS(CCI,-70);
MM:=MACD>REF(MACD,1)AND MACD>0 AND CLOSE>OPEN;
DD:AA AND MM,NODRAW,COLORFF00FF;
MA1:=MA(CLOSE,5);
MA3:=MA(CLOSE,20);
一穿三:=MA1>O AND MA2>O AND MA3>O AND MA1<C AND MA2<C AND MA3<C AND CLOSE>OPEN;
一穿三 AND DD ;
DRAWTEXT(一穿三, DD*1.13,'←致命出击'),COLORYELLOW;
投 股票网 www. tou18.cn
股市公式下载推荐