MACD背驰实战

2018-04-17    作者:admin    来源:网络

 DIF:EMA(CLOSE,12)-EMA(CLOSE,26),colorred,LINETHICK2;

DEA:EMA(DIF,9),COLORFF00FF,LINETHICK2;
{STICKLINE(DIF>DEA,-0.5,-0.6,10,1),COLOR00CFFF;
STICKLINE(DIF<DEA,-0.5,-0.6,10,1),COLORFFCCFF;}
MACD:(DIF-DEA)*2,COLORSTICK;
STICKLINE(((MACD<REF(MACD,1)) AND (MACD>0)),0,MACD,1,0),COLOR00cfff,LINETHICK2;
STICKLINE(((MACD>REF(MACD,1)) AND (MACD<0)),0,MACD,1,0),COLORFF00FF,LINETHICK2;
建仓:IF(DIF<0,DIF,0),COLORFF00FF,LINETHICK2;
加仓:IF(DIF<0,0,DIF),colorred,LINETHICK2;
破仓:IF(DIF<DEA,DIF,DEA),COLOR000000,LINETHICK2;
趋势强弱:IF(DIF>DEA,DEA,DEA),COLORFF937F,LINETHICK2;
A1:=BARSLAST(REF(CROSS(DIF,DEA),1));//{www.tzj123.com}
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIF>REF(DIF,A1+1) AND CROSS(DIF,DEA);
STICKLINE(底背离,0,0.03,6,0),COLOR00FF00;
底背:DRAWLINE(A1=0,DEA,底背离,DEA,0),colorred,LINETHICK4;
DRAWTEXT(底背离,0.12, 底背离),COLORFF00FF;
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),colorgreen,LINETHICK4;
背驰1:SMA(EMA((CLOSE-REF(CLOSE,1))/REF(CLOSE,1),5)*25,3,1),COLOR00ff00,linethick1;
B:=ZIG(3,50/5)*1;
//{www.tzj123.com}
g:=MA(B,2);
D:=CROSS(B,g)*1000;
W:=CROSS(g,B)*1000;
DRAWTEXT(W=1000,b*0.02,卖 ),COLORFF0000;
DRAWTEXT(D=1000,b*0.01,买),COLOR0000FF;

阅读:585    评论:0

上一篇: 大波段黄金操作

下一篇: 倍量空间选股器

联系我们 - 关于我们 - 网站地图

声明:站内所有文章、公式均来自互联网或网友分享提供,如侵犯您的权利请告知,我们会在24小时内及时删除! 


【电脑版】  【回到顶部】