实站MACD飞狐版 - 发百中的好指标(dzh1,dzh2,tdx通用)
DZH2用:
DIFF1:=EMA(CLOSE,16) - EMA(CLOSE,58);
DEA1:=EMA(DIFF1,88);
MACD1:2*(DIFF1-DEA1)*100,colorff00ff;
mamacd1:ma(macd1,5),colorwhite;
DIFF:=EMA(CLOSE,8) - EMA(CLOSE,26);
DEA:=EMA(DIFF,50);
MACD:2*(DIFF-DEA)*100 ;
mamacd:ma(macd,5),colorwhite;
STICKLINE(macd1<mamacd1,0,macd1,4,0),COLORgreen;
STICKLINE(macd>mamacd,macd1*0.6,0,4,0),COLORyellow;
STICKLINE(macd<0,mamacd,macd1,4,0),COLORgreen;
STICKLINE(macd1>mamacd1 and macd>mamacd ,0,macd1,4,0),COLORred;
通达信公式源码
DIFF1:=EMA(CLOSE,16) - EMA(CLOSE,58),COLORWHITE;
DEA1:=EMA(DIFF1,88),COLORYELLOW;
MACD1:2*(DIFF1-DEA1)*100 ;
MAMACD1:MA(MACD1,5),,COLORWHITE;
DIFF:=EMA(CLOSE,8) - EMA(CLOSE,26),COLORWHITE;
DEA:=EMA(DIFF,50),COLORYELLOW;
MACD:2*(DIFF-DEA)*100 ;
MAMACD:MA(MACD,5),,COLORWHITE;
STICKLINE(MACD1<MAMACD1,0,MACD1,1,0),COLORGREEN;
STICKLINE(MACD>MAMACD,MACD1*0.6,0,1,0),COLORYELLOW;
STICKLINE(MACD<0,MAMACD,MACD1,1,0),COLORGREEN;
STICKLINE(MACD1>MAMACD1 AND MACD>MAMACD ,0,MACD1,1,0),COLORRED;
优化后的通达信公式源码:
DIFF1:=EMA(CLOSE,16) - EMA(CLOSE,58),COLORWHITE;
DEA1:=EMA(DIFF1,88),COLORYELLOW;
MACD1:2*(DIFF1-DEA1)*100 ,LINETHICK2,COLORWHITE;
MAMACD1:MA(MACD1,5),LINETHICK2,COLORRED;
DIFF:=EMA(CLOSE,8) - EMA(CLOSE,26),COLORWHITE;
DEA:=EMA(DIFF,50),COLORYELLOW;
MACD:2*(DIFF-DEA)*100 ,LINETHICK1,COLOR00FFFF;
MAMACD:MA(MACD,5),LINETHICK1,COLORFFFF00;
STICKLINE(MACD1<MAMACD1,0,MACD1,1,0),COLORGREEN;
STICKLINE(MACD>MAMACD,MACD1*0.6,0,1,0),COLORYELLOW;
STICKLINE(MACD<0,MAMACD,MACD1,1,0),COLORGREEN;
STICKLINE(MACD1>MAMACD1 AND MACD>MAMACD ,0,MACD1,1,0),COLORRED;
优化后的飞狐公式源码:
DIFF1:=EMA(CLOSE,16) - EMA(CLOSE,58);
DEA1:=EMA(DIFF1,88);
MACD1:2*(DIFF1-DEA1)*100,colorwhite;
mamacd1:ma(macd1,5),colorff00ff;
DIFF:=EMA(CLOSE,8) - EMA(CLOSE,26);
DEA:=EMA(DIFF,50);
MACD:2*(DIFF-DEA)*100 ,COLOR00ffff;
mamacd:ma(macd,5),colorffff00;
STICKLINE(macd1<mamacd1,0,macd1,4,0),COLORgreen;
STICKLINE(macd>mamacd,macd1*0.6,0,4,0),COLORyellow;
STICKLINE(macd<0,mamacd,macd1,4,0),COLORgreen;
STICKLINE(macd1>mamacd1 and macd>mamacd ,0,macd1,4,0),COLORred;
问:如果2次红柱后,出现有第3,4,5次红柱,是否构成买入信号
答:
出现有第3,4,5次红柱,此时注意mamacd1是否平滑向上,如果是可以加仓买,
如果不是,等待下一次。
另外,激进的投资者,可以在第一次出现红柱后,少量买入,因为
此时大多是底部。
出现有第3,4,5次红柱,此时注意mamacd1是否平滑向上,如果是可以加仓买,
如果不是,等待下一次。
另外,激进的投资者,可以在第一次出现红柱后,少量买入,因为
此时大多是底部。
绝好的中线自用指标(100天,涨幅99.99%,成功率达95%以上)
公式编制思路:利用均线和MACD确定底部区域和启动点
公式源码:(主图)
A1:=3*eMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5)-2*eMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5);
A2:=LLV(L,21);
a3:LLV(L,30);
a4:=EMA(A1,5);
A5:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100;
a6:ma(c,20);
dif:="macd.diff"(12,26,9);
dea:="macd.dea"(12,26,9);
基础:=( dif<-0.1 and dif>dea),COLORyellow;
中线买入:CROSS(A1,a4)AND (A5-a4)>40 and 基础,COLORred;
STICKLINE(CROSS(A1,a4)AND (A5-a4)>40 and 基础 ,a3,a3*1.2,4,0),COLORred;
STICKLINE( 基础,a3,a3*1.1,4,0),COLORyellow;
选股公式源码:
A1:=3*eMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5)-2*eMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5);
a4:=EMA(A1,5);
A5:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100;
dif:="macd.diff"(12,26,9);
dea:="macd.dea"(12,26,9);
基础:=( dif<-0.1 and dif>dea);
中线:CROSS(A1,a4)AND (A5-a4)>40 and 基础;
选股公式:
DIFF1:=EMA(CLOSE,16) - EMA(CLOSE,58),colorwhite;
DEA1:=EMA(DIFF1,88),coloryellow;
MACD1:2*(DIFF1-DEA1)*100 ;
mamacd1:ma(macd1,5),,colorwhite;
DIFF:=EMA(CLOSE,8) - EMA(CLOSE,26),colorwhite;
DEA:=EMA(DIFF,50),coloryellow;
MACD:2*(DIFF-DEA)*100 ;
mamacd:ma(macd,5),,colorwhite;
xg:macd1>mamacd1 and macd>mamacd and MACD<0;
STICKLINE(macd1<mamacd1,0,macd1,4,0),COLORgreen;
STICKLINE(macd>mamacd,macd1*0.6,0,4,0),COLORyellow;
STICKLINE(macd<0,mamacd,macd1,4,0),COLORgreen;
STICKLINE(macd1>mamacd1 and macd>mamacd ,0,macd1,4,0),COLORred;
|