通达信macd指标怎么没箭头(macd选股指标)
内容导航:
Q1:通达信分时指标涨跌箭头设置
分时图MACD实际上就是1分钟线K线MACD,在常规K线中设为1分钟k线,和你上述分时图的MACD是相同的,你可以检验一下。
Q2:通达信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;
Q3:求通达信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;
Q4:股票公式数值傍边没有小箭头,如何增加上箭头?
k线图,鼠标右键;
如果是分析指标的数值箭头,到设置里面找。
Q5:求通达信的选股公式,条件是MACD大于零。
{通达信中到目前为止系统还不支持60分钟、30分钟的选股平台,只能给你MACD日线选股。}
DIF:=EMA(C,12)-EMA(C,26);
DEA:=EMA(DIF,9);
MACD:=2*(DIF-DEA);
MACD>0;
{上面的选股是你要的日线MACD大于0的选股公式,这一公式选出的股票一般都有一段涨幅了,我猜想你可能是要DIF红线上穿DEA黄线的选股吧。所以我帮你做了下面另一个公式}
DIF:=EMA(C,12)-EMA(C,26);
DEA:=EMA(DIF,9);
MACD:=2*(DIF-DEA);
CROSS(DIF,DEA);
Q6:MACD背离指标通达信指标公式源码
咳 有人答了
Q7:求高手写个MACD选股的公式如下图所示
REF(MACD.MACD,1)<REF(HHV(MACD.MACD,40),1) AND MACD.MACD>=HHV(MACD.MACD,40)
AND COUNT(MACD.MACD<0,10)=2;
本文由锦鲤发布,不代表本站立场,转载联系作者并注明出处:/showinfo-5-87641-0.html