主题0
精华0
阅读权限120
注册时间2016-12-14
在线时间0 小时
最后登录2017-9-12
美元0
爱心果6
贡献0
- 积分
- 8
指标研习组
- 听众
- 1
|
刚学习不久,分享给大家一个MACD二次金叉
DIF:EMA(C,12)-EMA(C,26),COLORRED;
DEA:EMA(DIF,9);
MACD:2*(DIF-DEA),COLORSTICK;
JCCOUNT:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
DRAWICON(二次金叉,DEA*0.9,1);
A1:=BARSLAST(REF(CROSS(DIF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIF>REF(DIF,A1+1) AND CROSS(DIF,DEA);
底背:DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORGREEN,LINETHICK2;
A2:=BARSLAST(REF(CROSS(DEA,DIF),1));
顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIF,A2+1)>DIF AND CROSS(DEA,DIF);
顶背:DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORMAGENTA,LINETHICK2;
STICKLINE(二次金叉,DIF,DIF+(-0.2),1,0)COLORRED;
STICKLINE(二次金叉,-2,DIF+(-0.2),4,0)COLORRED;
STICKLINE(二次金叉,-2,DIF+(-0.7),7,0)COLORRED;
|
|