通达信量化版mace主图+副图+选股
使用方法
此指标为电脑版指标,手机版未测试能否通用
macd优化而来,图中的黄色柱子就是信号,副图对应的也是。带选股,不含未来函数。
主图指标源码
A:=MACD.DIF;
A1:=MACD.DEA;
A2:=MACD.MACD;
T:=BARSLAST(A<0 AND A1<0 AND CROSS(A,A1));
TJ:=EVERY(A2>0,3) AND A2>REF(A2,1) AND REF(A2,1)0 AND A1>0 and a2>0;
XG:=COUNT(TJ,T)=1 AND TJ;
DRAWICON(XG,L*0.95,1);
STICKLINE(XG,C,O,2,0),COLORYELLOW;
STICKLINE(XG,H,L,0,0),COLORYELLOW;
副图指标源码
A:=MACD.DIF;
A1:=MACD.DEA;
A2:=MACD.MACD;
T:=BARSLAST(A<0 AND A1<0 AND CROSS(A,A1));
TJ:=EVERY(A2>0,3) AND A2>REF(A2,1) AND REF(A2,1)0 AND A1>0 and a2>0;
XG:=COUNT(TJ,T)=1 AND TJ;
DRAWICON(XG,L*0.95,1);
STICKLINE(XG,0,8,2,0),COLORYELLOW;
选股指标源码
A:=MACD.DIF;
A1:=MACD.DEA;
A2:=MACD.MACD;
T:=BARSLAST(A<0 AND A1<0 AND CROSS(A,A1));
TJ:=EVERY(A2>0,3) AND A2>REF(A2,1) AND REF(A2,1)0 AND A1>0 and a2>0;
XG:COUNT(TJ,T)=1 AND TJ;
更多指标源码、大盘分析、个股剖析所尽在彩虹桥投资学习。新朋友微信公众号搜索添加即可。
此指标为电脑版指标,手机版未测试能否通用
macd优化而来,图中的黄色柱子就是信号,副图对应的也是。带选股,不含未来函数。
主图指标源码
A:=MACD.DIF;
A1:=MACD.DEA;
A2:=MACD.MACD;
T:=BARSLAST(A<0 AND A1<0 AND CROSS(A,A1));
TJ:=EVERY(A2>0,3) AND A2>REF(A2,1) AND REF(A2,1)0 AND A1>0 and a2>0;
XG:=COUNT(TJ,T)=1 AND TJ;
DRAWICON(XG,L*0.95,1);
STICKLINE(XG,C,O,2,0),COLORYELLOW;
STICKLINE(XG,H,L,0,0),COLORYELLOW;
副图指标源码
A:=MACD.DIF;
A1:=MACD.DEA;
A2:=MACD.MACD;
T:=BARSLAST(A<0 AND A1<0 AND CROSS(A,A1));
TJ:=EVERY(A2>0,3) AND A2>REF(A2,1) AND REF(A2,1)0 AND A1>0 and a2>0;
XG:=COUNT(TJ,T)=1 AND TJ;
DRAWICON(XG,L*0.95,1);
STICKLINE(XG,0,8,2,0),COLORYELLOW;
选股指标源码
A:=MACD.DIF;
A1:=MACD.DEA;
A2:=MACD.MACD;
T:=BARSLAST(A<0 AND A1<0 AND CROSS(A,A1));
TJ:=EVERY(A2>0,3) AND A2>REF(A2,1) AND REF(A2,1)0 AND A1>0 and a2>0;
XG:COUNT(TJ,T)=1 AND TJ;
更多指标源码、大盘分析、个股剖析所尽在彩虹桥投资学习。新朋友微信公众号搜索添加即可。