通达信神奇的斐波那契数列指标公式

[复制链接]
查看86 | 回复0 | 2021-8-20 00:42:16 | 显示全部楼层 |阅读模式

以下是通达信神奇的斐波那契数列指标公式(无源码的请下载附件导入)

DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
 DEA:EMA(DIF,9);
 MACD:(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'),COLORYELLOW;
 DRAWTEXT(BARSLAST(TJ)=34,MACD,'34'),COLORYELLOW;
 DRAWTEXT(BARSLAST(TJ)=55,MACD,'55'),COLORYELLOW;
 DRAWTEXT(BARSLAST(T)=1,MACD,'1'),COLORGREEN;
 DRAWTEXT(BARSLAST(T)=2,MACD,'2'),COLORGREEN;
 DRAWTEXT(BARSLAST(T)=3,MACD,'3'),COLORGREEN;
 DRAWTEXT(BARSLAST(T)=5,MACD,'5'),COLORGREEN;
 DRAWTEXT(BARSLAST(T)=8,MACD,'8'),COLORGREEN;
 DRAWTEXT(BARSLAST(T)=13,MACD,'13'),COLORGREEN;
 DRAWTEXT(BARSLAST(T)=21,MACD,'21'),COLORGREEN;
 DRAWTEXT(BARSLAST(T)=34,MACD,'34'),COLORGREEN;
 DRAWTEXT(BARSLAST(T)=55,MACD,'55'),COLORGREEN;

63866199.png

63866199.png

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则