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

[原创] 预测点位 [文华财经]

  • 咨询内容:  预测点位


    文件名:qlzf.jpg

     

     来源:程序化99

  • 文华技术人员:   老笔:=1;
    XA_1:=MA(CLOSE,5);
    XA_2:=MA(CLOSE,10);
    XA_3:=REF(HIGH,5)=HHV(HIGH,11);
    XA_4:=REF(LOW,5)=LLV(LOW,11);
    XA_5:=BACKSET(XA_3,6)>BACKSET(XA_3,5);
    XA_6:=BACKSET(XA_4,6)>BACKSET(XA_4,5);
    XA_7:=IF(BARSLAST(XA_5)=BARSLAST(XA_6) AND XA_1>XA_2,XA_5,IF(BARSLAST(XA_6)>BARSLAST(XA_5),XA_5,0));
    XA_8:=IF(BARSLAST(XA_5)=BARSLAST(XA_6) AND XA_2>XA_1,XA_6,IF(BARSLAST(XA_5)>BARSLAST(XA_6),XA_6,0));
    XA_9:=XA_7 AND HIGH=HHV(HIGH,BARSLAST(XA_8));
    XA_10:=XA_8 AND LOW=LLV(LOW,BARSLAST(XA_7));
    GP:IF(XA_9,HIGH,NULL),CIRCLEDOT,COLORCYAN;
    DP:IF(XA_10,LOW,NULL),CIRCLEDOT,COLORCYAN;
    XA_11:=LOW>REF(HIGH,1) AND DAY<>REF(DAY,1);
    XA_12:=HIGH<REF(LOW,1) AND DAY<>REF(DAY,1);
    XA_13:=REF(LOW,BARSLAST(XA_11));
    XA_14:=REF(HIGH,BARSLAST(XA_12));
    XA_15:=REF(HIGH,BARSLAST(XA_9));
    XA_16:=REF(LOW,BARSLAST(XA_9));
    XA_17:=REF(HIGH,BARSLAST(XA_9)+1);
    XA_18:=REF(LOW,BARSLAST(XA_9)+1);
    XA_19:=REF(HIGH,BARSLAST(XA_9)+2);
    XA_20:=REF(LOW,BARSLAST(XA_9)+2);
    XA_21:=REF(HIGH,BARSLAST(XA_10));
    XA_22:=REF(LOW,BARSLAST(XA_10));
    XA_23:=REF(HIGH,BARSLAST(XA_10)+1);
    XA_24:=REF(LOW,BARSLAST(XA_10)+1);
    XA_25:=REF(HIGH,BARSLAST(XA_10)+2);
    XA_26:=REF(LOW,BARSLAST(XA_10)+2);
    XA_27:=IF(XA_16<=XA_18,XA_19,XA_17);
    XA_28:=IF(XA_17<XA_16,XA_16,IF(XA_16<=XA_18,XA_20,XA_18));
    XA_29:=IF(XA_24>XA_21,XA_21,IF(XA_21>=XA_23,XA_25,XA_23));
    XA_30:=IF(XA_21>=XA_23,XA_26,XA_24);
    XA_31:=XA_15>XA_29 AND XA_9;
    XA_32:=XA_22<XA_28 AND XA_10;
    XA_33:=XA_31 AND XA_15>XA_21 AND XA_16>XA_22 AND XA_18>XA_22;
    XA_34:=XA_32 AND XA_22<XA_16 AND XA_21<XA_15 AND XA_23<XA_15;
    XA_35:=HIGH<=REF(HIGH,1) AND LOW>=REF(LOW,1) OR (HIGH>=REF(HIGH,1) AND LOW<=REF(LOW,1));
    XA_36:=COUNT(XA_35,BARSLAST(XA_10)+1);
    XA_37:=COUNT(XA_35,BARSLAST(XA_9)+1);
    XA_38:=COUNT(XA_11,BARSLAST(XA_10)+1);
    XA_39:=COUNT(XA_12,BARSLAST(XA_9)+1);
    XA_40:=IF(XA_36>0,XA_36+2+老笔,IF(XA_37,XA_37+2+老笔,3));
    XA_41:=IF(XA_38,XA_40-XA_38,IF(XA_39,XA_40-XA_39,XA_40));
    XA_42:=XA_33 AND BARSLAST(XA_34)>XA_41;
    XA_43:=XA_34 AND BARSLAST(XA_33)>XA_41;
    XA_44:=XA_9 AND REF(HIGH,BARSLAST(XA_9))>=REF(HIGH,BARSLAST(XA_42)) AND BARSLAST(XA_43)>BARSLAST(XA_42) OR (XA_31 AND COUNT(XA_11,BARSLAST(XA_32))>0 AND REF(HIGH,BARSLAST(XA_31))>REF(HIGH,BARSLAST(XA_42)));
    XA_45:=XA_10 AND REF(LOW,BARSLAST(XA_10))<=REF(LOW,BARSLAST(XA_43)) AND BARSLAST(XA_42)>BARSLAST(XA_43) OR (XA_32 AND COUNT(XA_12,BARSLAST(XA_31))>0 AND REF(LOW,BARSLAST(XA_32))<REF(HIGH,BARSLAST(XA_43)));
    XA_46:=IF(BARSLAST(XA_45)>BARSLAST(XA_44),REF(HIGH,BARSLAST(XA_44)),REF(HIGH,BARSLAST(XA_45)));
    XA_47:=IF(BARSLAST(XA_44)>BARSLAST(XA_45),REF(LOW,BARSLAST(XA_45)),REF(LOW,BARSLAST(XA_44)));
    XA_48:=XA_44 AND HIGH=HHV(XA_46,BARSLAST(XA_45)+1) AND HIGH>REF(HIGH,1) AND BARSLAST(XA_45)>BARSLAST(XA_44);
    XA_49:=XA_45 AND LOW=LLV(XA_47,BARSLAST(XA_44)+1) AND LOW<REF(LOW,1) AND BARSLAST(XA_44)>BARSLAST(XA_45);
    XA_50:=XA_48 OR (XA_9 AND REF(HIGH,BARSLAST(XA_9))>REF(HIGH,BARSLAST(XA_48)) AND BARSLAST(XA_49)>BARSLAST(XA_48));
    XA_51:=XA_49 OR (XA_10 AND REF(LOW,BARSLAST(XA_10))<REF(LOW,BARSLAST(XA_49)) AND BARSLAST(XA_48)>BARSLAST(XA_49));
    GPB:IF(XA_42,HIGH,NULL),CIRCLEDOT,COLORYELLOW;
    DPB:IF(XA_43,LOW,NULL),CIRCLEDOT,COLORYELLOW;
    XA_52:=XA_50;
    XA_53:=XA_51;

    A:=REF(H,SUMBARS(BARSLASTCOUNT(BACKSET(XA_53,BARSLAST(XA_52)+1))=1,2)-1);//前期高点 B:=REF(L,SUMBARS(BARSLASTCOUNT(BACKSET(XA_52,BARSLAST(XA_53)+1))=1,1)-1);//低点 CC:=REF(H,SUMBARS(BARSLASTCOUNT(BACKSET(XA_53,BARSLAST(XA_52)+1))=1,1)-1);//次高点 D:=REF(L,SUMBARS(BARSLASTCOUNT(BACKSET(XA_52,BARSLAST(XA_53)+1))=1,2)-1);//次低点
    //D1:=B*CC/A; //D2:=CC-D+B;
    D1:=B*CC/A; //=5086.4*5058.2/5018.6=5126 //D2:=CC-D+B; E:=(D*CC)/B; //=5018.6+5086.4-5058.2=5046.8 //D2:=(B-A)+CC;
    //DRAWNUMBER(ISLASTBAR&&BARSLAST(BARSLASTCOUNT(BACKSET(XA_53,BARSLAST(XA_52)+1))=1)<BARSLAST(BARSLASTCOUNT(BACKSET(XA_52,BARSLAST(XA_53)+1))=1),H,D1,0,COLORWHITE); //DRAWNUMBER(ISLASTBAR&&BARSLAST(BARSLASTCOUNT(BACKSET(XA_53,BARSLAST(XA_52)+1))=1)>BARSLAST(BARSLASTCOUNT(BACKSET(XA_52,BARSLAST(XA_53)+1))=1),H,E,0,COLORYELLOW);
    //DRAWNUMBER(XA_43||XA_10,LOW,L,1,COLORGREEN),VALIGN0; //DRAWNUMBER(XA_42||XA_9,HIGH,H,1,COLORRED),VALIGN2; 
    DRAWTEXT(CLOSE/OPEN>1.08,LOW,'阳线';

     

     来源: WWW.CXH99.COM

  • 文华客服:  感谢您的指标分享。

     

  • 网友回复:  麻烦老师按图修改一下代码,数据看是否一致

     

  • 网友回复: 您指标用了未来函数,修改复杂,不属于论坛免费服务的范畴,论坛不提供相关修改。

 

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

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

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

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


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

相关文章

    没有相关内容