❶ 哪位老师有通达信MACD柱体背离的指标公式分享一个,真心感谢
偷懒,前一位弄的公式,给更正一下,其他内容纹丝没内动。
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
DD:=C=HHV(C,180);
EE:=DEA< REF(DEA,1) AND REF(DEA< REF(DEA,1),1)=1;
CC:=C> REF(C,1) AND REF(C> REF(C,1),1)=1;
FF:=C=LLV(C,180);
GG:=DEA> REF(DEA,1) AND REF(DEA> REF(DEA,1),1)=1;
LL:=C< REF(C,1) AND REF(C< REF(C,1),1)=1;
底背容离:(FF AND GG AND DEA> LLV(DEA,180))*DEA;
❷ 通达信MACD公式,请高手请把下面指标公式里的金叉死叉+个箭头表示谢谢
DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIFF,9);
MACD:2*(DIFF-DEA), COLORSTICK,LINETHICK2;
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;
STICKLINE(低位金叉,0,0.08,6,0),COLORYELLOW;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
STICKLINE(二次金叉,0,0.06,6,0),COLORFF00FF;
DRAWICON(二次金叉,DEA*0.9,1) ;
DRAWTEXT(二次金叉,0.1,' 二次金叉'),COLORYELLOW;
DRAWICON(CROSS(DIFF,DEA),DEA*1.02,1);
DRAWICON(CROSS(DEA,DIFF),DIFF*0.98,2);
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA) AND DIFF<0;
STICKLINE(底背离,0,0.03,6,0),COLOR00FF00;
底背:DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,LINETHICK4;
DRAWTEXT(底背离,DIFF,' 底背离'),COLORFF00FF;
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);
顶背:DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN,LINETHICK4;
❸ 求高手帮忙设:通达信macd 顶底背离+画线公式,如图,图片来自同花顺,万分感激!
DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
DRAWICON(CROSS(DIF,DEA),DEA,1);
DRAWICON(CROSS(DEA,DIF),DEA,2);
DU:=BARSLAST(CROSS(DIF,DEA));
DD:=BARSLAST(CROSS(DEA,DIF));
TJ1:=DEA<0ANDDU=0ANDREF(DEA,REF(DU,1))<DEAANDREF(C,REF(DU,1))>C;
STICKLINE(EVERY(UPNDAY(DU,1),DU),REF(DEA,DU),REF(DEA,DU),5,-1),COLORLIGRAY;
STICKLINE(TJ1,REF(DEA,REF(DU+1,1)),DEA,1,0),COLORLIGRAY;
DRAWTEXT(TJ1,REF(DEA,REF(DU,1)),'底背离'),COLORLIGRAY;
TJ2:=DEA>0ANDDD=0ANDREF(DEA,REF(DD,1))>DEAANDREF(C,REF(DD,1))<C;
STICKLINE(EVERY(UPNDAY(DD,1),DD),REF(DEA,DD),REF(DEA,DD),5,-1),COLORLIGRAY;
STICKLINE(TJ2,REF(DEA,REF(DD+1,1)),DEA,1,0),COLORLIGRAY;
DRAWTEXT(TJ2,REF(DEA,REF(DD,1)),'顶背离'),COLORLIGRAY;
❹ 通达信MACD底背离选股公式
股价创30日新低:l<=llv(l,30);
当日MACD(就是那个红绿柱子)值大于昨日:"macd.macd”>ref("macd.macd",1);
当日DIFF(白线) 没创新低:"macd.dif">=ref("macd.dif",1);
选股1:l<=LLV(l,30) AND "MACD.MACD">REF("MACD.MACD",1);
选股2:l<=LLV(l,30) AND "MACD.DIF">=REF("MACD.DIF",1);
选股3:l<=LLV(l,30) AND "MACD.MACD">REF("MACD.MACD",1) and
"MACD.DIF">=REF("MACD.DIF",1);
❺ 求通达信MACD连续1次或以上《顶底背离》后,金叉或死叉出买卖信号指标及选股公式
你要的公抄式没办法分辨!要自己分辨
MACD底背离
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
QZQ:=BARSLAST(REF(MACD,1)<0 AND MACD>0);
QM:=LLVBARS(MACD,QZQ+20);
MQDZ:=IF(QM>QZQ,REF(MACD,QM),0);
XG1:=MACD<0 AND MACD>MQDZ
AND CLOSE=LLV(CLOSE,QZQ+20) AND MQDZ<0;
XG:REF(XG1,1)=1 AND MACD>REF(MACD,1);
或者 {XG:REF(XG1,1)=1 AND MACD>REF(MACD,1)AND DIFF>REF(DIFF,10);}
❻ 求通达信中把MACD顶底背离信号叠加到分时主图上的公式源码
顶背离,你要确定一下是,dif的背离,还是,dea线的背离,还是macd柱子高低的背离.
提示方式是画线提示还是文字提示还是图标提示
例如下图中的是划线提示的
❼ 求通达信macd指标中包含:顶底背离、金叉死叉、macd上升红色下降绿色带箭头,谢谢!
{通达信MACD顶底背离指标---供参考!}
DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIFF,9);
MACD:2*(DIFF-DEA), COLORSTICK,LINETHICK2;
STICKLINE(MACD>REF(MACD,1),0,MACD,1,0),COLOR0000FF;
STICKLINE(MACD<REF(MACD,1),0,MACD,1,0),COLOR00FF00;
DRAWICON(REF(MACD,2)>REF(MACD,1) AND MACD>REF(MACD,1),MACD-0.2,1);
DRAWICON(REF(MACD,2)<REF(MACD,1) AND MACD<REF(MACD,1),MACD+0.2,2);
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;
STICKLINE(低位金叉,0,0.08,6,0),COLORYELLOW;
DRAWTEXT(低位金叉,0.16,' 低位金叉'),COLORWHITE;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
STICKLINE(二次金叉,0,0.06,6,0),COLORFF00FF;
DRAWICON(二次金叉,DEA*0.9,5) ;
DRAWTEXT(二次金叉,0.2,' 二次金叉'),COLORYELLOW;
死叉:=CROSS(DEA,DIFF);
DRAWICON(死叉,DIFF+0.2,6) ;
金叉:=CROSS(DIFF,DEA);
DRAWICON(金叉,DEA-0.2,17) ;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
STICKLINE(底背离,0,0.03,6,0),COLOR00FF00;
DRAWTEXT(底背离,0.12,' 底背离'),COLORFF00FF;
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离:=REF(CLOSE,A2+1) AND CROSS(DEA,DIFF);
DRAWTEXT(低位金叉 AND 二次金叉 AND 底背离,0.25,'进场'),COLOR0000FF,LINETHICK2;