求大智慧MACD底背离和顶背离公式

如题所述

第1个回答  2019-03-04

如果你想要的公式效果如下
可以联系我
由于字数限制代码过长
背离时会画线不背离时不会画线,并且只提示最近的.

第2个回答  2009-04-05
DIFF:EMA(CLOSE,12)-EMA(CLOSE,27);
DEA:EMA(DIFF,9);
MACD:2*(DIFF-DEA), COLORSTICK,LINETHICK2;
低位金叉:=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,1) ;
DRAWTEXT(二次金叉,0.2,' 二次金叉'),COLORYELLOW;
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),COLORRED,LINETHICK4;
DRAWTEXT(底背离,0.12,' 底背离'),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;
DRAWTEXT(低位金叉 AND 二次金叉 AND 底背离,0.25,'三全项'),COLOR0000FF,LINETHICK2;
第3个回答  推荐于2018-11-20
[MACD顶底背离] 参数 short=12 long=26 m=9 n=55
DIFF:EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA:EMA(DIFF,M);
MACD:2*(DIFF-DEA), COLORSTICK;
底背离:LLV(L,N)=L AND NOT(LLV(MACD,N)=MACD),COLORFF00FF;
顶背离:HHV(H,N)=H AND NOT(HHV(MACD,N)=MACD),COLORFFFFFF;本回答被提问者和网友采纳
第4个回答  2009-04-05
说句实话我也想找这个公式,希望你早点找到,是个好指标。

求大智慧MACD底背离和顶背离公式
如果你想要的公式效果如下可以联系我由于字数限制代码过长背离时会画线不背离时不会画线,并且只提示最近的.

求大智慧RSI、CCI、KDJ、MACD顶背离和底背离选股公式
K顶背离:=GDGJ AND KGZB;MACD:="MACD.MACD";MDZB:=REF(MACD,DDSJ+1)<MACD;M底背离:=DDGJ AND MDZB;MGZB:=REF(MACD,GDSJ+1)>MACD;M顶背离:=GDGJ AND MGZB;RSI:="RSI.RSI1";RDZB:=REF(RSI,DDSJ+1)<RSI;R底背离:=DDGJ AND RDZB;RGZB:=REF(RSI,GDSJ+1)>RSI;R顶背离:=GD...

macd顶背离和底背离指标公式
2. 信号线的计算公式Signal Line = 9日MACD Line的EMA平均值计算方式为:今日EMA(9) = 前一日EMA(9)×8\/10 + 今日MACD Line×2\/10 3. 柱状图的计算公式Histogram = MACD Line - Signal Line 4. MACD顶背离和底背离形态的定义(1)MACD顶背离:指股票价格连续创新高(顶部),而MACD指标...

请帮忙把这两个飞狐和大智慧能用的底背离公式改为顶背离的,谢谢
底背离,飞狐版、大智慧L2版、大智慧经典(免费)版} 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:=HHVBARS(MACD,QZQ+20);MQDZ:=IF(QM<QZQ,REF(MACD,QM),0);XG1:=MACD>0 AND MACD<MQDZ AND CL...

求MACD绿柱底背离公式!
我给你的是幅图公式,MACD背离 DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);DEA : EMA(DIFF,M);MACD : 2*(DIFF-DEA), COLORSTICK,COLOR5454FF;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;上...

macd底背离选股公式
底背离现象一般是预示股价在低位可能反转向上的信号,表明股价短期内可能反弹向上,是短期买入股票的信号。macd底背离选股公式是:底背离:=REF(CLOSE,A1+1)>CLOSEANDDIFF>REF(DIFF,A1+1)ANDCROSS(DIFF,DEA);STICKLINE(底背离,DEA*1.09,DEA*0.86,6,0),Color00FF00;DRAWLINE(A1=...

求助老师:如何编写macd底背离的选股公式
顶背:DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN,LINETHICK2;=== {选股} DIFF:=EMA(C,12)-EMA(C,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));底背离:REF(C,A1+1)>C AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);

macd顶底背离指标公式
据悉,在实践中,MACD指标的背离一般出现在强势行情中比较可靠,macd顶底背离指标公式中,DIFF:=EMA(CLOSE,12)-EMA(CLOSE,27);DEA:=EMA(DIFF,9);A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));底背离:REF(CLOSE,A1+1)>CLOSEANDDIFF>REF(DIFF,A1+1)ANDCROSS(DIFF,DEA);顶背离:=REF(CLOSE...

收藏| Macd指标背离用法大全+选股公式
1. 顶背离:价格持续上涨,创新高,但MACD红柱未创新高,表示价格虽创新高,但动能不足,预示未来可能下跌。2. 底背离:价格持续下跌,创新低,而MACD绿柱未创新低,表示价格虽创新低,但动能不足,预示未来可能反弹。一、常见的背离类型 1. Macd背离:股价创新高或创新低时,指标图形相反创新低...

如何在博易大师的MACD上加上顶背离和底背离标记?
DIFF:EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);DEA:EMA(DIFF,M);MACD:2*(DIFF-DEA), COLORSTICK;底背离:LLV(L,N)=L AND NOT(LLV(MACD,N)=MACD),COLORFF00FF;顶背离:HHV(H,N)=H AND NOT(HHV(MACD,N)=MACD),COLORFFFFFF;

相似回答