编写要求:
DIFF:=((EMA(CLOSE,26) - EMA(CLOSE,12)) * -1);
DEA:=EMA(DIFF,9);
DEA1:=EMA(DIFF,18);
MACD:=(2 * (DIFF - DEA));
操盘:STICKLINE(((MACD >= 0) AND (MACD >= REF(MACD,1))),0,MACD,4,1),color0000FF;
减仓:STICKLINE(((MACD >= 0) AND (MACD < REF(MACD,1))),0,MACD,4,0),colorFF00FF;
反弹:STICKLINE(((MACD < 0) AND (MACD >= REF(MACD,1))),0,MACD,4,1),color00FFFF;
寻底:STICKLINE(((MACD < 0) AND (MACD < REF(MACD,1))),0,MACD,4,0),colorFFFF00;
IF((DIFF < 0),DIFF,0),LINETHICK2,color00FFFF;
IF((DIFF < DEA),DIFF,DEA),LINETHICK2,colorFFFFFF;
IF((DIFF < 0),0,DIFF),LINETHICK2,color0000FF;
PARTLINE(DIFF,(DIFF < MA(DIFF,2))),LINETHICK2,colorFFFFFF;
IF((DIFF > DEA),DEA,DEA),LINETHICK2,color0000FF;
PARTLINE(DEA,(DEA < MA(DEA,5))),LINETHICK2,colorFFFFFF;
FILLRGN(diff,dea,diff>=dea),Color000044;
FILLRGN(diff,dea,diff 解答: ?DIFF:=((EMA(CLOSE,26) - EMA(CLOSE,12)) * -1); DEA:=EMA(DIFF,9);
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!