带箭头macd指标(macd箭头)
1、请高手帮忙写一个同花顺中MACD指标显示买卖红绿箭头的公式,谢谢!
DIFF= EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA = EMA(DIFF,m);
IF(Long>short)
{
IF (CROSS(diff,dea))
BUY;
IF (CROSS(dea,diff))
SELL;
}
2、通达信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;
3、求高人编写通达信MACD指标数值后面的带上下箭头(MACD柱子增大箭头向上,反之向下)如图.
DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
MACD:=(DIF-DEA)*2;
红柱:IF(MACD>REF(MACD,1),MACD,DRAWNULL),STICK,COLORRED;
绿柱:IF(MACD<REF(MACD,1),MACD,DRAWNULL),STICK,COLORYELLOW;
用颜色在附图显示,这样更直观一些。
如果需要用这个值,再另外编写。
4、外汇mt4中macd带买卖箭头提示的指标,求一个?
这个一般的MT4上都找不到,基本用途不大,其实目前MT4上的各类指标能够根据自己的交易经验结合使用一两种就已经足够了。
5、外汇mt4中macd带买卖箭头提示的指标,求一个?
这个一般的MT4上都找不到,基本用途不大,其实目前MT4上的各类指标能够根据自己的交易经验结合使用一两种就已经足够了。
6、MACD上面显示箭头
{周期15分钟}
DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
DRAWICON((DIF-DEA)>=0 AND (DIF-DEA)<=0.009,DIF*1.05,1);
7、求高人编写通达信MACD指标数值后面的带上下箭头(MACD柱子增大箭头向上,反之向下)如图.
DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
MACD:=(DIF-DEA)*2;
红柱:IF(MACD>REF(MACD,1),MACD,DRAWNULL),STICK,COLORRED;
绿柱:IF(MACD<REF(MACD,1),MACD,DRAWNULL),STICK,COLORYELLOW;
用颜色在附图显示,这样更直观一些。
如果需要用这个值,再另外编写。