手机端
当前位置:爱约股 > 公式技巧 > 类似MACD公式

类似MACD公式

 网友求助:

DIFF : EMA(CLOSE,12) - EMA(CLOSE,26),LINETHICK1,LAYER0;
DEA : EMA(DIFF,9),LAYER0;
MACD : 2*(DIFF-DEA),LINETHICK1,COLORSTICK,LAYER0;
起 : DIFF>0 AND DIFF>DEA,COLOR0000FF,POINTDOT,LINETHICK0;

要求:DIFF下叉和小于DEA时候是绿色的线和最好加上 上涨箭头和下跌箭头,谢谢老师帮助
 

 

 

解答如下:

DIFF:EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:EMA(DIFF,9);
MACD:2*(DIFF-DEA),COLORSTICK,LAYER1;
起:DIFF>0 AND DIFF>DEA,COLOR0000FF,POINTDOT,LINETHICK0;
PARTLINE(DIFF,DIFF<DEA,RGB(0,255,0)),LAYER0;
PARTLINE(DEA,DIFF<DEA,RGB(0,255,0)),LAYER0;
DRAWICON(CROSS(DIFF,DEA),DIFF,7),ALIGN1,LAYER0;
DRAWICON(CROSS(DEA,DIFF),DIFF+0.05,8),ALIGN1,LAYER0;
 

TAG:MACD 公式
分享至:

相关推荐