当前位置:→ 公式网 > 股票池 > 正文 ℃ 公式解密、改选股等业务 联系点击查看详情...
以下是通达信DX选股副图源码(无源码的请下载附件导入)
杨文峰老师源码:
DIF1:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA1:=EMA(DIF1,9);
MACD1:=(DIF1-DEA1)*2,COLORSTICK;
STICKLINE(MACD1>REF(MACD1,1) AND MACD1>0,0,MACD1,0,0),COLORRED;
STICKLINE(MACD1<=REF(MACD1,1) AND MACD1>0,0,MACD1,0,0),COLORYELLOW;
STICKLINE(MACD1<REF(MACD1,1) AND MACD1<0,0,MACD1,0,0),COLORCYAN;
STICKLINE(MACD1>=REF(MACD1,1) AND MACD1<0,0,MACD1,0,0),COLORMAGENTA;
STICKLINE(C>0,0,0,50,1),COLORBLUE;
DIF1,COLORGREEN;
DEA1,COLORYELLOW;
强:IF(DIF1>MA(DIF1,4),DIF1,DRAWNULL),COLORRED;
弱:IF(DEA1>MA(DEA1,4),DEA1,DRAWNULL),COLORMAGENTA;
俺也无聊,手痒随手做个选股器,大家分享。老师的东东木敢乱加料,各位末够味,自已偷偷加啦!
杨老师选股:
DIF1:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA1:=EMA(DIF1,9);
DEA:=EMA(DIF1,DEA1);
XD:CROSS(DIF1>DEA1,0.5),COLORYELLOW;