请高手编写个通达信的简单公式:MACD红绿柱子背离

如题所述

MACD顶底背离(同时包含KDJ背离,RSI背离)
公式如下:

DIFF:EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:EMA(DIFF,9);
MACD:2*(DIFF-DEA),COLORSTICK;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);
A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));
B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));
A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));
B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));
C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));
D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);
C2:=BARSLAST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1));
D2:=REF(C,C2+1)<C AND REF("KDJ.K"(9,3,3),C2+1)>"KDJ.K"(9,3,3) AND CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3));
C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));
D3:=REF(C,C3+1)<C AND REF("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));
MACD底背:IF(B1>0,-0.1,0),COLORRED,POINTDOT;
KDJ底背:IF(B2>0,-0.1,0),COLORFF00FF,POINTDOT;
RSI底背:IF(B3>0,-0.1,0),COLORYELLOW,POINTDOT;
MACD顶背:IF(D1>0,0.1,0),COLOR00FF00,POINTDOT;
KDJ顶背:IF(D2>0,0.1,0),COLORFFCC66,POINTDOT;
RSI顶背:IF(D3>0,0.1,0),COLORWHITE,POINTDOT;
STICKLINE(B1>0,-0.1,0,2,0),COLORRED;
STICKLINE(B2>0,-0.1,0,2,0),COLORFF00FF;
STICKLINE(B3>0,-0.1,0,2,0),COLORYELLOW;
STICKLINE(D1>0,0.1,0,2,0),COLOR00FF00;
STICKLINE(D2>0,0.1,0,2,0),COLORFFCC66;
STICKLINE(D3>0,0.1,0,2,0),COLORWHITE;
温馨提示:内容为网友见解,仅供参考
第1个回答  2011-09-04
MACD顶底背离(同时包含KDJ背离,RSI背离)
公式如下:

最总赚钱的还是主力,,去(金融评点网)"下载自己喜欢的软件,里面什么都有,一切都是免费的。希望我的回答对你有一定的帮助。

求通达信MACD红绿柱背离预警公式,我要的是MACD红绿柱相邻的两个红柱浪...
MACD:=(DIF-DEA)*2,COLORSTICK;底背离:C<=LLV(C,60) AND MACD>LLV(MACD,60) AND MACD>=REF(MACD,1);别忘了把参数加上,SHORT是12,LONG是26,MID是9 DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);DEA:=EMA(DIF,MID);MACD:=(DIF-DEA)*2,COLORSTICK;顶背离:C>=LLV(C,60) AND MACD<L...

求助:通达信MACD变色公式
_红柱:IF("MACD.MACD">REF("MACD.MACD",1),"MACD.MACD",DRAWNULL),STICK,COLORRED;绿柱:IF("MACD.MACD"<REF("MACD.MACD",1),"MACD.MACD",DRAWNULL),STICK,COLORYELLOW;_抄底:ABS((CROSS("MACD.DIF","MACD.DEA")&&"MACD.DEA"<=-0.07)*"MACD.DIF")*1.50,COLORLIMAGENTA;_DIF:"M...

求通达信MACD绿柱底背离的选股公式
当日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...

求高手编通达信MACD红绿柱公式
MACD:=(DIF-DEA)*2,COLORSTICK;XG:COUNT(C\/REF(C,1)>1.07,120)>=2 AND LAST(MACD<REF(MACD,1) AND MACD<0,7,1) AND MACD>REF(MACD,1);这个是第二个的选股公式。

1、帮助写个通达信macd 的指标,与通达信自带macd一样。
1、简单的,和系统macd一样的如下:DIF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORBLUE;DEA:EMA(DIF,9),COLORGREEN;MACD:(DIF-DEA)*2,COLORSTICK;红柱:IF(MACD>REF(MACD,1),MACD,DRAWNULL),STICK,COLORRED;绿柱:IF(MACD<REF(MACD,1),MACD,DRAWNULL),STICK,COLORGREEN;2、 和系统macd参数一样的...

求个macd只显示红绿柱的副图公式。通达信的!
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);DEA:=EMA(DIF,MID);MACD:(DIF-DEA)*2,COLORSTICK;参数结合系统指标添加即可.或直接使用下面的公式也可以。DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:(DIF-DEA)*2,COLORSTICK;

请高手修改一下 MACD 公式 通达信的
DEA:EMA(DIFF,9),LINETHICK2,COLORYELLOW;MACD:2*(DIFF-DEA), COLORSTICK,LINETHICK4;红柱天数:LAST(MACD>0,5,1),COLORRED,LINETHICK0;死叉天:=LAST(MACD<0,5,1);死叉天数:REF(死叉天,1),COLORGREEN,LINETHICK0;--- 注意;PRECIS0为大智慧函数,表示---输出精度控制符,PRECISx,用逗号隔开...

通达信软件里MACD金叉死叉用红色和绿色小箭头表示的公式
一、DIF:EMA(CLOSE,12)-EMA(CLOSE,26);DEA:EMA(DIF,9);MACD:(DIF-DEA)*2,COLORSTICK;DRAWICON(CROSS(DIF,DEA),DIF,1);DRAWICON(CROSS(DEA,DIF),DEA,2);DRAWTEXT(CROSS(DIF,DEA),DIF,'金叉'),COLORRED;DRAWTEXT(CROSS(DEA,DIF),DEA,'死叉'),COLORGREEN;{技术指标公式,副图用...

求通达信公式:macd选股公式
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2;X1:DIF>REF(DIF,1) AND V>=MA(V,50),COLORRED;X2:MACD<REF(MACD,1),COLORGREEN;这样的条件设计会信号过多,而且,出现两条件重叠情况.

哪位老师有通达信MACD柱体背离的指标公式分享一个,真心感谢
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;参考资料:http:\/\/tieba.baidu.com\/f?kw=%B9%C9%C6%B1%B9%AB%CA%BD%D7%A8%BC%D2 ...

相似回答