通达信macd顶底背离指标(macd底背离选股公式如何
1、求 通达信 MACD 顶背离 和 顶部二次背离 选股公式
SQX:=(C-MA(CLOSE,13))100; DIFF:EMA(MA(SQX,7),1),COLOR00FFFF; DEA:EMA(DIFF,7),COLORFF33FF; MACD:(DIFF-DEA)2,COLORSTICK; 低位金叉:IF(CROSS(DIFF,DEA) AND DIFF<-0.1,0.3,0),COLORYELLOW,POINTDOT; STICKLINE(低位金叉,0,15,8,0),COLORYELLOW;DRAWICON(低位金叉,0.3,1); JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0)); 二次金叉:IF(CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1,0.2,0),COLORFF00FF,POINTDOT; STICKLINE(二次金叉,30,15,8,0),COLORFF00FF; A1:=BARSLAST(REF(CROSS(DIFF,DEA),1)); 底背离:IF(REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA),0.1,0),COLORRED,POINTDOT; STICKLINE(底背离,45,30,8,0),COLORRED;DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED; A2:=BARSLAST(REF(CROSS(DEA,DIFF),1)); 顶背离:REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF),COLORGREEN; DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN; A3:=CROSS(DIFF,DEA) AND DEA<0; 零下二次金叉:IF(FILTER(COUNT(A3,21)=2,10),0.05,0),COLORWHITE,POINTDOT; STICKLINE(零下二次金叉,45,60,8,0),COLORWHITE;
2、求通达信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);}
3、求助高手MACD指标顶(底)背离量化公式
DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIFF,9);
MACD:2(DIFF-DEA), COLORSTICK,LINETHICK2;
Zero : 0;
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;
底背:DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORFF00FF;
DRAWTEXT(底背离,-0.2,' 底背离'),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),colreen;
DRAWTEXT(顶背离,DEA1.15,'顶背离'),colorhite;
DRAWICON(CROSS(DIFF,DEA),DEA,'BUY');
DRAWICON(CROSS(DEA,DIFF),DEA,'SELL');
4、哪位老师有通达信MACD柱体背离的指标公式分享一个,真心感谢
可以编写macd柱体的顶底背离指标,你是判断macd长短的背离还是判断macd柱面积的背离,再有你所说的颜色变化,用什么颜色怎么变化没明白什么意思有图吗。
下图是macd柱顶底背离画线指标。
5、求通达信15分钟周期MACD底背离的选股公式
用日线背离的就可以了。
6、求一个同花顺选股公式要求macd指标的macd值小于等于0
红色转为绿色的第一天
SELECT CROSS(0,MACD);
------------------------------------------
不知道别人给你的是怎么做的,就这么简单就行
7、macd 选股公式?
指标选股发没有万能的公式,原先我研究过一些,并进行了一定的实战。实战一年多后发现就算没有政策及庄家的操盘等人为因素,好用的公式撑不过1周,只有变化才是永远不变的。
适应变化,在变化中求生存。光研究理论没用,小资金盘在实战中生存下来了,接着才是考虑盈利打法和放大操作。前29天小盈利,第30天全赔进去,一样白搭。
股市有风险,入市需谨慎。玩彩也是一样的道理