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

指标改个颜色 [文华财经]

  • 咨询内容:  DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26)*10,COLORRED;DEA:=EMA(DIFF,9),COLORFFFFFF,LINETHICK1;

    MACD:-16*(DIFF-DEA);

    STICKLINE(MACD<REF(MACD,1) AND MACD<0,0,MACD,2,0),COLORGREEN;

    STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,2,0),COLORBLUE;

    STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,2,0),COLORRED;

    STICKLINE(MACD<REF(MACD,1) AND MACD>0,0,MACD,3,0),COLORYELLOW;

    VAR1:=(MA(CLOSE,80)-MA(CLOSE,13)/3);

    VAR2:=(MA((CLOSE-VAR1)/VAR1,1));

    MMA:=EMA(VAR2,12)*0.7;

    MMB:=EMA(VAR2,3);

    DEAF:=0-DEA;DIFFF:=0-DIFF;

    //FILLRGN(DEAF>DIFFF,DEAF,DIFFF,RGB(0,0,255));//FILLRGN(DEAF<DIFFF,DEAF,DIFFF,RGB(255,0,0));
     

    STICKLINE(CROSS(VAR2,0) AND LOW/REF(HIGH,1)<1.012,50,0,2,0),COLOR00FFFF,LINETHICK2;

    //IF(COUNT(VAR2>REF(VAR2,1),3)=3 AND COUNT(VAR2<0,10)=10 AND REF(VAR2,3)=LLV(VAR2,10),80,0),COLORRED;

    MD2:IF(REF(VAR2,2)=LLV(VAR2,20) AND REF(VAR2,2)<0.071 AND REF(VAR2,2)<REF(VAR2,1) AND NOT(REF(LOW,1)>REF(HIGH,2) AND LOW>REF(HIGH,1)) AND CLOSE>REF(CLOSE,1),50,0),COLORFF00FF,LINETHICK2;

    KDD:IF(LLV(MMB-MMA,12)>0,0,-30),LINETHICK2 ,COLORLIGHTRED;

    DCXG:IF( CROSS(0,LLV(MMB-MMA,12)),20,0),COLORFFFFFF,LINETHICK2;

    CD:IF(KDD<0 AND CROSS(MACD,0),30,0),COLORFF00FF,LINETHICK2;

    DRAWICON(CD>0,70,34);


    文件名:1627953929(1).png

     

     来源:程序化99

  • 文华技术人员: 参考:

    DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26)*10,COLORRED; DEA:=EMA(DIFF,9),COLORFFFFFF,LINETHICK1;

    MACD:-16*(DIFF-DEA);

    STICKLINE(MACD<REF(MACD,1) AND MACD<0,0,MACD,2,0),COLORGREEN;

    STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,2,0),COLORMAGENTA;

    STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,2,0),COLORRED;

    STICKLINE(MACD<REF(MACD,1) AND MACD>0,0,MACD,3,0),COLORYELLOW;

    VAR1:=(MA(CLOSE,80)-MA(CLOSE,13)/3);

    VAR2:=(MA((CLOSE-VAR1)/VAR1,1));

    MMA:=EMA(VAR2,12)*0.7;

    MMB:=EMA(VAR2,3);

    DEAF:=0-DEA; DIFFF:=0-DIFF;

    //FILLRGN(DEAF>DIFFF,DEAF,DIFFF,RGB(0,0,255)); //FILLRGN(DEAF<DIFFF,DEAF,DIFFF,RGB(255,0,0));
     

    STICKLINE(CROSS(VAR2,0) AND LOW/REF(HIGH,1)<1.012,50,0,2,0),COLOR00FFFF,LINETHICK2;

    //IF(COUNT(VAR2>REF(VAR2,1),3)=3 AND COUNT(VAR2<0,10)=10 AND REF(VAR2,3)=LLV(VAR2,10),80,0),COLORRED;

    MD2:IF(REF(VAR2,2)=LLV(VAR2,20) AND REF(VAR2,2)<0.071 AND REF(VAR2,2)<REF(VAR2,1) AND NOT(REF(LOW,1)>REF(HIGH,2) AND LOW>REF(HIGH,1)) AND CLOSE>REF(CLOSE,1),50,0),COLORFF00FF,LINETHICK2;

    KDD:IF(LLV(MMB-MMA,12)>0,0,-30),LINETHICK2 ,COLORLIGHTRED;

    DCXG:IF( CROSS(0,LLV(MMB-MMA,12)),20,0),COLORFFFFFF,LINETHICK2;

    CD:IF(KDD<0 AND CROSS(MACD,0),30,0),COLORFF00FF,LINETHICK2;

    DRAWICON(CD>0,70,34);

 

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

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

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

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


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

相关文章

    没有相关内容