您现在的位置:程序化交易>> 期货公式>> 文华财经>> 文华财经知识>>正文内容

麻烦老师帮改 [文华财经]

  • 咨询内容: DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);//短周期与长周期的收盘价的指数平滑移动平均值做差。DEA  := EMA(DIFF,9);//DIFF的M个周期指数平滑移动平均MACD:=2*(DIFF-DEA),COLORSTICK;//DIFF减DEA的2倍画柱状线J:CROSS(DIFF,DEA),NODRAW;S:CROSSDOWN(DIFF,DEA),NODRAW;
    RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);
    T1:IF(DIFF>0,3,-3),NODRAW;T2:IF(DEA>0,1,-1),NODRAW;T3:IF(DIFF>DEA,1,-1),NODRAW;T4:IF(K>80,3,IF(K<20,-3,0)),NODRAW;T5:IF(K>50,1,IF(K<50,-1,0)),NODRAW;T6:IF(K>D,1,IF(K<D,-1,0)),NODRAW;
    AA:T1+T2+T3+T4+T5+T6,NODRAW;DRAWLINE(AA>0,0,1,AA,COLORRED),LINETHICK3;DRAWLINE(AA<0,0,1,AA,COLORCYAN),LINETHICK3;
    请老师将最后三句用红绿面积取代红绿柱体

     

     来源:程序化99

  • 文华技术人员:   AA:T1+T2+T3+T4+T5+T6,NODRAW; DRAWLINE(AA>0,0,1,AA,COLORRED),LINETHICK3; DRAWLINE(AA<0,0,1,AA,COLORCYAN),LINETHICK3;
    老师,码错了,应该是这三句,其余都一样

     

     来源: WWW.CXH99.COM

  • 文华客服:   AA:T1+T2+T3+T4+T5+T6,NODRAW; DRAWLINE(AA>0,0,1,AA,COLORRED),LINETHICK3; DRAWLINE(AA<0,0,1,AA,COLORCYAN),LINETHICK3; 又搞错了,是这三句,不好意思,见笑

     

  • 网友回复: 参考:
    DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);//短周期与长周期的收盘价的指数平滑移动平均值做差。 DEA  := EMA(DIFF,9);//DIFF的M个周期指数平滑移动平均 MACD:=2*(DIFF-DEA),COLORSTICK;//DIFF减DEA的2倍画柱状线 J:CROSS(DIFF,DEA),NODRAW; S:CROSSDOWN(DIFF,DEA),NODRAW;
    RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,3,1); D:=SMA(K,3,1);
    T1:IF(DIFF>0,3,-3),NODRAW; T2:IF(DEA>0,1,-1),NODRAW; T3:IF(DIFF>DEA,1,-1),NODRAW; T4:IF(K>80,3,IF(K<20,-3,0)),NODRAW; T5:IF(K>50,1,IF(K<50,-1,0)),NODRAW; T6:IF(K>D,1,IF(K<D,-1,0)),NODRAW; AA:T1+T2+T3+T4+T5+T6,NODRAW;
    STICKLINE1(AA>0,0,AA,4,0),COLORRED; STICKLINE1(AA<0,0,AA,4,0),COLORCYAN;

     

  • 网友回复:  老师辛苦了,柱体面积能不能更光滑一些,这个看上去太突兀

 

有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信号:cxh99cxh99  进行 有偿收费 编写!

怎么收费,代编流程等详情请点击阅读!

(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容