主页 > 黄金期货 > 期货macd怎么调出箭头 期货macd怎么调出箭头符号

期货macd怎么调出箭头 期货macd怎么调出箭头符号

期货大神 黄金期货 2023年08月29日

...金叉死叉、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;

macd如何添加买卖剪头

这要缓芦看你如何设置买卖条件,

再有你要说明用什么软件。

软件不同公式陆消编写也不一样。

通过编写技术指标公式就可以给macd指标添加上早哪知买卖的箭头提示。

例如金叉死叉买卖箭头效果如下

标签: in   AND   背离