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

改成文华的公式 [文华财经]

  • 咨询内容:  A1:=(EMA((O+H+LOW+C)/4,3)+EMA((O+H+LOW+C)/4,6)+EMA((O+H+LOW+C)/4,9))/3;

    A2:=(EMA((O+H+LOW+C)/4,5)+EMA((O+H+LOW+C)/4,10)+EMA((O+H+LOW+C)/4,20))/3;

    A3:=(EMA((O+H+LOW+C)/4,7)+EMA((O+H+LOW+C)/4,14)+EMA((O+H+LOW+C)/4,28))/3;

    A4:=(EMA((O+H+LOW+C)/4,9)+EMA((O+H+LOW+C)/4,18)+EMA((O+H+LOW+C)/4,36))/3;

    A5:=(EMA((O+H+LOW+C)/4,11)+EMA((O+H+LOW+C)/4,22)+EMA((O+H+LOW+C)/4,44))/3;

    A6:=(EMA((O+H+LOW+C)/4,13)+EMA((O+H+LOW+C)/4,26)+EMA((O+H+LOW+C)/4,52))/3;

    A7:=(EMA((O+H+LOW+C)/4,21)+EMA((O+H+LOW+C)/4,34)+EMA((O+H+LOW+C)/4,68))/3;

    WAVAR1:=FORCAST(A1,6);

    WAVAR2:=FORCAST(A2,6);

    WAVAR3:=FORCAST(A3,6);

    WAVAR4:=FORCAST(A4,6);

    WAVAR5:=FORCAST(A5,6);

    WAVAR6:=FORCAST(A6,6);

    WAVAR7:=FORCAST(A7,6);

    IF(WAVAR1>REF(WAVAR1,1),WAVAR1,DRAWNULL),POINTDOT,COLORFF00FF;

    IF(WAVAR1<REF(WAVAR1,1),WAVAR1,DRAWNULL),POINTDOT,COLOR00FF00;

    IF(WAVAR2>REF(WAVAR2,1),WAVAR2,DRAWNULL),POINTDOT,COLORFF00FF;

    IF(WAVAR2<REF(WAVAR2,1),WAVAR2,DRAWNULL),POINTDOT,COLOR00FF00;

    IF(WAVAR3>REF(WAVAR3,1),WAVAR3,DRAWNULL),POINTDOT,COLORFF00FF;

    IF(WAVAR3<REF(WAVAR3,1),WAVAR3,DRAWNULL),POINTDOT,COLOR00FF00;

    IF(WAVAR4>REF(WAVAR4,1),WAVAR4,DRAWNULL),POINTDOT,COLORFF00FF;

    IF(WAVAR4<REF(WAVAR4,1),WAVAR4,DRAWNULL),POINTDOT,COLOR00FF00;

    IF(WAVAR5>REF(WAVAR5,1),WAVAR5,DRAWNULL),POINTDOT,COLORFF00FF;

    IF(WAVAR5<REF(WAVAR5,1),WAVAR5,DRAWNULL),POINTDOT,COLOR00FF00;

    IF(WAVAR6>REF(WAVAR6,1),WAVAR6,DRAWNULL),POINTDOT,COLORFF00FF;

    IF(WAVAR6<REF(WAVAR6,1),WAVAR6,DRAWNULL),POINTDOT,COLOR00FF00;

    IF(WAVAR7>REF(WAVAR7,1),WAVAR7,DRAWNULL),LINETHICK2,COLORFF00FF;

    IF(WAVAR7<REF(WAVAR7,1),WAVAR7,DRAWNULL),LINETHICK2,COLOR00FF00;

    TOWERC:=FORCAST(EMA((3*C+2*O+H+LOW)/7,3),6);

    DIRECTIONMAX:=MAX(REF(TOWERC,1),REF(TOWERC,1));

    DIRECTIONMIN:=MIN(REF(TOWERC,1),REF(TOWERC,1));

    DRAWTEXT_FIX(C>0,0,0,0,'免费获取更多指标,关注公众号:【吾爱指标】'),COLORMAGENTA;

    STICKLINE(TOWERC>=REF(TOWERC,1),TOWERC,DIRECTIONMAX,4,0),COLOR0000FF;

    STICKLINE(TOWERC<REF(TOWERC,1),TOWERC,DIRECTIONMIN,4,0),COLOR00FF00; 

     

     

     来源:程序化99

  • 文华技术人员:  请参考

     A1:=(EMA((O+H+LOW+C)/4,3)+EMA((O+H+LOW+C)/4,6)+EMA((O+H+LOW+C)/4,9))/3; A2:=(EMA((O+H+LOW+C)/4,5)+EMA((O+H+LOW+C)/4,10)+EMA((O+H+LOW+C)/4,20))/3;
    A3:=(EMA((O+H+LOW+C)/4,7)+EMA((O+H+LOW+C)/4,14)+EMA((O+H+LOW+C)/4,28))/3;
    A4:=(EMA((O+H+LOW+C)/4,9)+EMA((O+H+LOW+C)/4,18)+EMA((O+H+LOW+C)/4,36))/3;
    A5:=(EMA((O+H+LOW+C)/4,11)+EMA((O+H+LOW+C)/4,22)+EMA((O+H+LOW+C)/4,44))/3;
    A6:=(EMA((O+H+LOW+C)/4,13)+EMA((O+H+LOW+C)/4,26)+EMA((O+H+LOW+C)/4,52))/3;
    A7:=(EMA((O+H+LOW+C)/4,21)+EMA((O+H+LOW+C)/4,34)+EMA((O+H+LOW+C)/4,68))/3;
    WAVAR1:=FORCAST(A1,6);
    WAVAR2:=FORCAST(A2,6);
    WAVAR3:=FORCAST(A3,6);
    WAVAR4:=FORCAST(A4,6);
    WAVAR5:=FORCAST(A5,6);
    WAVAR6:=FORCAST(A6,6);
    WAVAR7:=FORCAST(A7,6);
    IF(WAVAR1>REF(WAVAR1,1),WAVAR1,NULL),POINTDOT,COLORFF00FF;
    IF(WAVAR1<REF(WAVAR1,1),WAVAR1,NULL),POINTDOT,COLOR00FF00;
    IF(WAVAR2>REF(WAVAR2,1),WAVAR2,NULL),POINTDOT,COLORFF00FF;
    IF(WAVAR2<REF(WAVAR2,1),WAVAR2,NULL),POINTDOT,COLOR00FF00;
    IF(WAVAR3>REF(WAVAR3,1),WAVAR3,NULL),POINTDOT,COLORFF00FF;
    IF(WAVAR3<REF(WAVAR3,1),WAVAR3,NULL),POINTDOT,COLOR00FF00;
    IF(WAVAR4>REF(WAVAR4,1),WAVAR4,NULL),POINTDOT,COLORFF00FF;
    IF(WAVAR4<REF(WAVAR4,1),WAVAR4,NULL),POINTDOT,COLOR00FF00;
    IF(WAVAR5>REF(WAVAR5,1),WAVAR5,NULL),POINTDOT,COLORFF00FF;
    IF(WAVAR5<REF(WAVAR5,1),WAVAR5,NULL),POINTDOT,COLOR00FF00;
    IF(WAVAR6>REF(WAVAR6,1),WAVAR6,NULL),POINTDOT,COLORFF00FF;
    IF(WAVAR6<REF(WAVAR6,1),WAVAR6,NULL),POINTDOT,COLOR00FF00;
    IF(WAVAR7>REF(WAVAR7,1),WAVAR7,NULL),LINETHICK2,COLORFF00FF;
    IF(WAVAR7<REF(WAVAR7,1),WAVAR7,NULL),LINETHICK2,COLOR00FF00;
    TOWERC:=FORCAST(EMA((3*C+2*O+H+LOW)/7,3),6);
    DIRECTIONMAX:=MAX(REF(TOWERC,1),REF(TOWERC,1));
    DIRECTIONMIN:=MIN(REF(TOWERC,1),REF(TOWERC,1));

    STICKLINE(TOWERC>=REF(TOWERC,1),TOWERC,DIRECTIONMAX,4,0),COLOR0000FF;
    STICKLINE(TOWERC<REF(TOWERC,1),TOWERC,DIRECTIONMIN,4,0),COLOR00FF00; 

     

     来源: WWW.CXH99.COM

  • 文华客服:  老师可以把上涨蓝色改长醒目黄色。谢谢

     

  • 网友回复: 参考:
    A1:=(EMA((O+H+LOW+C)/4,3)+EMA((O+H+LOW+C)/4,6)+EMA((O+H+LOW+C)/4,9))/3; A2:=(EMA((O+H+LOW+C)/4,5)+EMA((O+H+LOW+C)/4,10)+EMA((O+H+LOW+C)/4,20))/3;
    A3:=(EMA((O+H+LOW+C)/4,7)+EMA((O+H+LOW+C)/4,14)+EMA((O+H+LOW+C)/4,28))/3;
    A4:=(EMA((O+H+LOW+C)/4,9)+EMA((O+H+LOW+C)/4,18)+EMA((O+H+LOW+C)/4,36))/3;
    A5:=(EMA((O+H+LOW+C)/4,11)+EMA((O+H+LOW+C)/4,22)+EMA((O+H+LOW+C)/4,44))/3;
    A6:=(EMA((O+H+LOW+C)/4,13)+EMA((O+H+LOW+C)/4,26)+EMA((O+H+LOW+C)/4,52))/3;
    A7:=(EMA((O+H+LOW+C)/4,21)+EMA((O+H+LOW+C)/4,34)+EMA((O+H+LOW+C)/4,68))/3;
    WAVAR1:=FORCAST(A1,6);
    WAVAR2:=FORCAST(A2,6);
    WAVAR3:=FORCAST(A3,6);
    WAVAR4:=FORCAST(A4,6);
    WAVAR5:=FORCAST(A5,6);
    WAVAR6:=FORCAST(A6,6);
    WAVAR7:=FORCAST(A7,6);
    IF(WAVAR1>REF(WAVAR1,1),WAVAR1,NULL),POINTDOT,COLORFF00FF;
    IF(WAVAR1<REF(WAVAR1,1),WAVAR1,NULL),POINTDOT,COLOR00FF00;
    IF(WAVAR2>REF(WAVAR2,1),WAVAR2,NULL),POINTDOT,COLORFF00FF;
    IF(WAVAR2<REF(WAVAR2,1),WAVAR2,NULL),POINTDOT,COLOR00FF00;
    IF(WAVAR3>REF(WAVAR3,1),WAVAR3,NULL),POINTDOT,COLORFF00FF;
    IF(WAVAR3<REF(WAVAR3,1),WAVAR3,NULL),POINTDOT,COLOR00FF00;
    IF(WAVAR4>REF(WAVAR4,1),WAVAR4,NULL),POINTDOT,COLORFF00FF;
    IF(WAVAR4<REF(WAVAR4,1),WAVAR4,NULL),POINTDOT,COLOR00FF00;
    IF(WAVAR5>REF(WAVAR5,1),WAVAR5,NULL),POINTDOT,COLORFF00FF;
    IF(WAVAR5<REF(WAVAR5,1),WAVAR5,NULL),POINTDOT,COLOR00FF00;
    IF(WAVAR6>REF(WAVAR6,1),WAVAR6,NULL),POINTDOT,COLORFF00FF;
    IF(WAVAR6<REF(WAVAR6,1),WAVAR6,NULL),POINTDOT,COLOR00FF00;
    IF(WAVAR7>REF(WAVAR7,1),WAVAR7,NULL),LINETHICK2,COLORFF00FF;
    IF(WAVAR7<REF(WAVAR7,1),WAVAR7,NULL),LINETHICK2,COLOR00FF00;
    TOWERC:=FORCAST(EMA((3*C+2*O+H+LOW)/7,3),6);
    DIRECTIONMAX:=MAX(REF(TOWERC,1),REF(TOWERC,1));
    DIRECTIONMIN:=MIN(REF(TOWERC,1),REF(TOWERC,1));

    STICKLINE(TOWERC>=REF(TOWERC,1),TOWERC,DIRECTIONMAX,4,0),COLORYELLOW;
    STICKLINE(TOWERC<REF(TOWERC,1),TOWERC,DIRECTIONMIN,4,0),COLOR00FF00; 

 

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

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

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

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


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

相关文章

    没有相关内容