类似MACD公式
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个

编写要求:

解答:

 网友求助:

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;
 

 


选股票看什么指标最好 >股票指标网