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

请老师帮忙!! [文华财经]

  • 咨询内容:  博易大师修改文华 T1:=1300101;
    KA1:IF(CURRENTDATE<T1,EMA(CLOSE,3),0),POINTDOT,COLORFF00FF;
    KA2:IF(CURRENTDATE<T1,EMA(CLOSE,5),0),POINTDOT,COLORFF00FF; 
    KA3:IF(CURRENTDATE<T1,EMA(CLOSE,8),0),POINTDOT,COLORFF00FF;  KA4:IF(CURRENTDATE<T1,EMA(CLOSE,10),0),POINTDOT,COLORFF00FF;  KA5:IF(CURRENTDATE<T1,EMA(CLOSE,12),0),POINTDOT,COLORFF00FF;  KA6:IF(CURRENTDATE<T1,EMA(CLOSE,15),0),POINTDOT,COLORFF00FF;  KA7:IF(CURRENTDATE<T1,EMA(CLOSE,30),0),POINTDOT,COLORFF8000;  KA8:IF(CURRENTDATE<T1,EMA(CLOSE,35),0),POINTDOT,COLORFF8000;  KA9:IF(CURRENTDATE<T1,EMA(CLOSE,40),0),POINTDOT,COLORFF8000;  KA10:IF(CURRENTDATE<T1,EMA(CLOSE,45),0),POINTDOT,COLORFF8000;  KA11:IF(CURRENTDATE<T1,EMA(CLOSE,50),0),POINTDOT,COLORFF8000;  KA12:IF(CURRENTDATE<T1,EMA(CLOSE,60),0),POINTDOT,COLORFF8000;  KA13:IF(CURRENTDATE<T1,EMA(CLOSE,144),0),POINTDOT,COLOR00FFFF,LINETHICK2;  KA14:IF(CURRENTDATE<T1,EMA(CLOSE,169),0),POINTDOT,COLOR00FFFF,LINETHICK2;  KA15:=EMA(CLOSE,3),COLOR8000FF,LINETHICK3;
    KA003:=MA(CLOSE,3); KA007:=MA(CLOSE,7); KA0014:=MA(CLOSE,14); RED:=CROSS(C,KA14); GREEN:=CROSS(KA14,C); FLAG:=IF(BARSTATUS=1,0,IF(RED,1,IF(GREEN,-1,REF(FLAG,1)))); STICKLINE(FLAG>0,HIGH,MAX(C,O),0,1),COLORRED; STICKLINE(FLAG>0,LOW,MIN(C,O),0,1),COLORRED; STICKLINE(FLAG>0,C,O,4,1),COLORRED; STICKLINE(FLAG<0,HIGH,MAX(C,O),0,0),COLORGREEN; STICKLINE(FLAG<0,LOW,MIN(C,O),0,0),COLORGREEN; STICKLINE(FLAG<0,C,O,4,0),COLORGREEN; STICKLINE(FLAG=0,HIGH,MAX(C,O),0,0),COLORYELLOW; STICKLINE(FLAG=0,LOW,MIN(C,O),0,0),COLORYELLOW; STICKLINE(FLAG=0,C,O,4,0),COLORYELLOW; 

     MID:=MA(CLOSE,18),COLORMAGENTA; TMP2:=STD(CLOSE,18); TOP:=MID+2*TMP2,COLORBLUE; BOTTOM:=MID-2*TMP2,COLORBLUE; MA03:=MA(CLOSE,3),COLORWHITE,LINETHICK2; MA013:=EMA(CLOSE,144),COLORRED;D:=EMA(CLOSE,144),LINETHICK4;
    PARTLINE(D>REF(D,1),D),COLORRED,LINETHICK2;
    PARTLINE(D<REF(D,1),D),COLOR00FF00,LINETHICK2;
    KA014:=EMA(CLOSE,169),COLORRED;E:=EMA(CLOSE,169),LINETHICK4;
    PARTLINE(E>REF(E,1),E),COLORRED,LINETHICK2;
    PARTLINE(E<REF(E,1),E),COLOR00FF00,LINETHICK2;





    DRAWTEXT(FLAG>0 AND CROSS(KA3,KA7),LOW*0.999,'',COLORYELLOW;DRAWTEXT(FLAG<0 AND CROSS(KA7,KA3),HIGH*1.001,'',COLORYELLOW;



    KA121:EMA(CLOSE,3),POINTDOT,COLORFF00FF; KA221:EMA(CLOSE,5),POINTDOT,COLORFF00FF; KA321:EMA(CLOSE,8),POINTDOT,COLORFF00FF;

     

     来源:程序化99

  • 文华技术人员: 不同软件对函数处理机制略有不同 ,变量不支持引用自身,因此部分指标不支持修改已经删除,效果可能会略有差异,参考:
     T1:=1300101;
    KA1:IF(CURRENTDATE<T1,EMA(CLOSE,3),0),POINTDOT,COLORFF00FF;
    KA2:IF(CURRENTDATE<T1,EMA(CLOSE,5),0),POINTDOT,COLORFF00FF; 
    KA3:IF(CURRENTDATE<T1,EMA(CLOSE,8),0),POINTDOT,COLORFF00FF;    KA4:IF(CURRENTDATE<T1,EMA(CLOSE,10),0),POINTDOT,COLORFF00FF;    KA5:IF(CURRENTDATE<T1,EMA(CLOSE,12),0),POINTDOT,COLORFF00FF;    KA6:IF(CURRENTDATE<T1,EMA(CLOSE,15),0),POINTDOT,COLORFF00FF;    KA7:IF(CURRENTDATE<T1,EMA(CLOSE,30),0),POINTDOT,COLORFF8000;    KA8:IF(CURRENTDATE<T1,EMA(CLOSE,35),0),POINTDOT,COLORFF8000;    KA9:IF(CURRENTDATE<T1,EMA(CLOSE,40),0),POINTDOT,COLORFF8000;    KA10:IF(CURRENTDATE<T1,EMA(CLOSE,45),0),POINTDOT,COLORFF8000;    KA11:IF(CURRENTDATE<T1,EMA(CLOSE,50),0),POINTDOT,COLORFF8000;    KA12:IF(CURRENTDATE<T1,EMA(CLOSE,60),0),POINTDOT,COLORFF8000;    KA13:IF(CURRENTDATE<T1,EMA(CLOSE,144),0),POINTDOT,COLOR00FFFF,LINETHICK2;    KA14:IF(CURRENTDATE<T1,EMA(CLOSE,169),0),POINTDOT,COLOR00FFFF,LINETHICK2;    KA15:=EMA(CLOSE,3),COLOR8000FF,LINETHICK3;
    KA003:=MA(CLOSE,3);   KA007:=MA(CLOSE,7);   KA0014:=MA(CLOSE,14);   RED:=CROSS(C,KA14);   GREEN:=CROSS(KA14,C);  


      MID:=MA(CLOSE,18),COLORMAGENTA;   TMP2:=STD(CLOSE,18);   TOP:=MID+2*TMP2,COLORBLUE;   BOTTOM:=MID-2*TMP2,COLORBLUE;   MA03:=MA(CLOSE,3),COLORWHITE,LINETHICK2;   MA013:=EMA(CLOSE,144),COLORRED; D:=EMA(CLOSE,144),LINETHICK4;
    PARTLINE1(D>REF(D,1),D),COLORRED,LINETHICK2;
    PARTLINE1(D<REF(D,1),D),COLOR00FF00,LINETHICK2;
    KA014:=EMA(CLOSE,169),COLORRED; E:=EMA(CLOSE,169),LINETHICK4;
    PARTLINE1(E>REF(E,1),E),COLORRED,LINETHICK2;
    PARTLINE1(E<REF(E,1),E),COLOR00FF00,LINETHICK2;

 

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

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

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

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


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

相关文章

    没有相关内容