请真的高手做MACD通达信的顶背离选股指标公式,要求附图出现顶背离画绿线的5天时间内,DIFF金叉DEA选股

参考样板股。{2.25日的600165天坛生物}
码源;
DIFF:EMA(CLOSE,5)-EMA(CLOSE,24);
DEA:EMA(DIFF,5);
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;

DIFF:=EMA(CLOSE,5)-EMA(CLOSE,24);
DEA:=EMA(DIFF,5);
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);
COUNT(顶背离,5)>=1 AND CROSS(DIFF,DEA);
温馨提示:内容为网友见解,仅供参考
无其他回答

求高手改写macd,顶背离选股公式
MACD:=2*(DIFF-DEA);C1:=BARSLAST(REF(CROSS( DEA,DIFF ),1));XG:REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);

macd顶背离和底背离指标公式
1. MACD线的计算公式MACD Line = 12日EMA线 - 26日EMA线其中,EMA是指数平均数,计算方式为:今日EMA(12)= 前一日EMA(12)×11\/13 + 今日收盘价×2\/13。今日EMA(26)的计算公式类似。2. 信号线的计算公式Signal Line = 9日MACD Line的EMA平均值计算方式为:今日EMA(9) = 前一日EMA...

求通达信MACD红绿柱背离预警公式,我要的是MACD红绿柱相邻的两个红柱浪...
顶背离:C>=LLV(C,60) AND MACD<=REF(MACD,1);

哪位老师有通达信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...

MACD背离指标通达信指标公式源码
{MACD背离指标}DIFF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORWHITE; DEA:EMA(DIFF,9),COLORYELLOW; MACD:2*(DIFF-DEA),COLORSTICK; STICKLINE(MACD0,0,MACD,0,0),COLORYELLOW;STICKLINE(MACD>REF(MACD,1)ANDMACD<0,0,MACD,0,0),COLORGREEN; 低位金叉:=CROSS(DIFF,DEA)...

求高手编写大盘指数MACD周线顶底背离公式
顶背离或者底背离属于形态分析范畴,你要有具体的判断条件才能编写,你也没说具体怎么判断让别人怎么给你编写啊。例如下面的macd背离画图主图与副图,要有具体判断条件才能编写。例如下图指标通过选择参数能对比dif值背离,dea值背离,macd柱背离,macd背驰。至于你想用在什么周期都可以,分钟,小时,日线...

求通达信公式: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顶底背离指标公式
据悉,在实践中,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...

跪求:通达信软件的股价站上5日线预警公式
AA:=CLOSE<OPEN;BB:=CROSS(MA(CLOSE,5),MA(CLOSE,10));CC:=CLOSE>=MA(CLOSE,10);IF(AA AND BB AND CC,1,0);这个公式条件苛刻一些。但你选出的股票会更合乎你的要求。

通达信 macd 背离选股公式 要求有幅图主图画线 选股位置提示
通达信可以编写macd背离选股公式,dif,dea,macd柱的面积,高低点都可以通过参数选择,主图幅图都有画线提示,并且幅图有选股位置提示.效果如下图.

相似回答