通达信数列MACD指标公式

2024-02-05 16:58发布

SHORT:=12;MID:=9;LONG:=26;DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);DEA:EMA(DIF,MID);:(DIF-DEA)*2,COLORSTICK;TJ:=MACD>0;T:=MACD<0;A:=LLV(MACD,50)=MACD;DRAWICON(A AND FILTERX(A,20), MACD,1);DRAWTEXT(BARSLAST(TJ)=1,MACD,'1'),COLORYELLOW;DRAWTEXT(BARSLAST(TJ)=2,MACD,'2'),COLORYELLOW;DRAWTEXT(BARSLAST(TJ)=3,MACD,'3'),COLORYELLOW;DRAWTEXT(BARSLAST(TJ)=5,MACD,'5'),COLORYELLOW;DRAWTEXT(BARSLAST(TJ)=8,MACD,'8'),COLORYELLOW;DRAWTEXT(BARSLAST(TJ)=13,MACD,'13'),COLORYELLOW;DRAWTEXT(BARSLAST(TJ)=21,MACD,'21')
 解锁全文需 1  财富值,免费注册即送20财富值!