通达信大牛波段副图指标源码值得研究

[复制链接]
查看67 | 回复0 | 2021-8-26 21:36:12 | 显示全部楼层 |阅读模式

以下是通达信大牛波段副图指标源码值得研究(无源码的请下载附件导入)

{大牛副图}

DIF:EMA(CLOSE,12)-EMA(CLOSE,25);
DEA:EMA(DIF,5);
MACD:=(DIF-DEA)*2;
STICKLINE(MACD>0,MACD,0,2,1),COLORRED;
STICKLINE(MACD<0,MACD,0,2,1),COLORCYAN;
MACD120:REF(MACD/2,BARSLAST(MACD=HHV(MACD,120))),COLORRED,LINETHICK2;
MACD250:REF(MACD/2,BARSLAST(MACD=HHV(MACD,250))),COLORWHITE,LINETHICK2;
XG:=NOT(REF(MACD120,1)=MACD120);DRAWTEXT_FIX(C>O,0.01,0.01,0,'
STICKLINE(XG,0,MACD,2,0),COLORYELLOW;
STICKLINE(MACD>=MACD250,MACD250,MACD,2,0),COLORMAGENTA;
大行情:=NOT(REF(MACD120,1)=REF(MACD250,1)) AND MACD120=MACD250;
DRAWTEXT(XG,0,'↖金柱'),COLORYELLOW;
DRAWTEXT(大行情,0,'↖大牛启动'),COLORRED;

2237577553.png

2237577553.png

223899121.png

223899121.png

回复

使用道具 举报

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

本版积分规则