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

请帮我改为文华适用 [文华财经]

  • 咨询内容: MA5:=MA(C,5)LINETHICK1
    ,COLOR00CCFF;
    MA10:=MA(C,10);
    MA20:MA(C,20)LINETHICK2,COLORMAGENTA;
    MA30:=MA(C,30);
    MA55:MA(C,55)LINETHICK2,COLORBLUE;
    MA275:=MA(C,275)LINETHICK2,COLORLIGREEN;
    五日乖离率:=(C-MA5)/MA5*100;
    BB5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;
    速度5:=SMA(EMA((MA5-REF(MA5,1))/REF(MA5,1),3)*100,3,1);
    加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW;


    BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;

    三拾日乖离率:=(C-MA30)/MA30*100,NODRAW;
    VAR1:=(MA20-MA30)>REF((MA20-MA30),1) AND MA20>REF(MA20,1) AND MA30>REF(MA30,1);
    VAR2:=(MA30-MA20)<REF((MA30-MA20),1) AND MA20<REF(MA20,1) AND MA30<REF(MA30,1);
    BB30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.1416;
    强势狙击:=FILTER(BB30>30 AND BB10>45 AND CROSS(BB5,60),10);
    加仓:=FILTER(COUNT(CROSS(BB5,30),5)>=1 AND MA5>REF(MA5,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA10>REF(MA10,1)
    AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1),10);
    清仓:=FILTER(COUNT(CROSS(30,BB5),5)>=1 AND (C>MA30 OR O>MA30) AND MA5<REF(MA5,1) AND 三拾日乖离率<REF(三拾日乖离率,1) AND MA10<REF(MA10,1),10);
    DRAWTEXT(加仓 ,LOW*0.98,'←加仓'),COLORLIMAGENTA;
    JC:=CROSS(0,五日乖离率) AND 三拾日乖离率<REF(三拾日乖离率,1) AND MA10>REF(MA10,1) ;
    减仓:=FILTER(JC,10);
    MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA5>REF(MA5,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<MA30;
    买入:=FILTER(MR,10);
    DRAWTEXT(减仓,HIGH*1.02,'←风险'),COLORBLUE;
    DRAWTEXT(买入,LOW*0.98,'←买入'),COLORRED;
    DRAWTEXT(清仓 ,HIGH*1.02,'←清仓'),COLORGREEN;
    DRAWTEXT(强势狙击,LOW*0.95,'←狙击'),COLORLIRED;
    VAR21:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW));
    VAR3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100);
    MV:=(VAR21+VAR3)/AMOUNT*VOL*100*50;
    压力:MA(REF(HHV(C,30),1),2),COLORBLUE;
    支撑:MA(REF(LLV(C,30),1),2),COLORMAGENTA;

     

     来源:程序化99

  • 文华技术人员:  参考:
    MA5:=MA(C,5),LINETHICK1,COLOR00CCFF; MA10:=MA(C,10); MA20:MA(C,20),LINETHICK2,COLORMAGENTA; MA30:=MA(C,30); MA55:MA(C,55),LINETHICK2,COLORBLUE; MA275:=MA(C,275),LINETHICK2,COLORLIGHTGREEN; 五日乖离率:=(C-MA5)/MA5*100; BB5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416; 速度5:=SMA(EMA((MA5-REF(MA5,1))/REF(MA5,1),3)*100,3,1); 加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW;
    BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;
    三拾日乖离率:=(C-MA30)/MA30*100,NODRAW; VAR1:=(MA20-MA30)>REF((MA20-MA30),1) AND MA20>REF(MA20,1) AND MA30>REF(MA30,1); VAR2:=(MA30-MA20)<REF((MA30-MA20),1) AND MA20<REF(MA20,1) AND MA30<REF(MA30,1); BB30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.1416; 强势狙击:=FILTER(BB30>30 AND BB10>45 AND CROSS(BB5,60),10); 加仓:=FILTER(COUNT(CROSS(BB5,30),5)>=1 AND MA5>REF(MA5,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA10>REF(MA10,1) AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1),10); 清仓:=FILTER(COUNT(CROSS(30,BB5),5)>=1 AND (C>MA30 OR O>MA30) AND MA5<REF(MA5,1) AND 三拾日乖离率<REF(三拾日乖离率,1) AND MA10<REF(MA10,1),10); DRAWTEXT(加仓 ,LOW*0.98,'加仓',COLORMAGENTA; JC:=CROSS(0,五日乖离率) AND 三拾日乖离率<REF(三拾日乖离率,1) AND MA10>REF(MA10,1) ; 减仓:=FILTER(JC,10); MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA5>REF(MA5,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<MA30; 买入:=FILTER(MR,10); DRAWTEXT(减仓,HIGH*1.02,'风险',COLORBLUE; DRAWTEXT(买入,LOW*0.98,'买入',COLORRED; DRAWTEXT(清仓 ,HIGH*1.02,'清仓',COLORGREEN; DRAWTEXT(强势狙击,LOW*0.95,'狙击',COLORLIGHTRED; VAR21:=MAX(ABS(HIGH-AVPRICE/100),ABS(AVPRICE/100-LOW)); VAR3:=ABS((OPEN+CLOSE)/2-AVPRICE/100); MV:=(VAR21+VAR3)/AVPRICE*V*VOL*100*50; 压力:MA(REF(HHV(C,30),1),2),COLORBLUE; 支撑:MA(REF(LLV(C,30),1),2),COLORMAGENTA;

 

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

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

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

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


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

相关文章

    没有相关内容