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

[求助]请老师写一个指标 [文华财经]

  • 咨询内容:  F:=100*(C-REF(C,1))/REF(C,1);
    S1:=IF(C<REF(O,1) AND F<0,1,0);
    S2:=IF(C<REF(O,2) AND F<0,1,0);
    A1:=S1=0 AND REF(S1,1)=1 AND S2=0 AND REF(S2,1)=1 AND CROSS(ZIG(3,3) ,REF(ZIG(3 ,3),1));
    A2:=S1=0 AND REF(S1,1)=1 AND S2=0 AND REF(S2,1)=1 AND CROSS(ZIG(3,5) ,REF(ZIG(3 ,5),1));
    A3:=S1=0 AND REF(S1,1)=1 AND S2=0 AND REF(S2,1)=1 AND CROSS(ZIG(3,10) ,REF(ZIG(3 ,10),1));
    STICKLINE(A1 AND A2 ,0,3,3,0)COLORGREEN;
    STICKLINE(A1 AND A2 ,0,1,3,0)COLORBLUE;
    STICKLINE(A1 AND A2 AND A3,0,5,3,0)COLORRED;
    STICKLINE(A1 AND A2 AND A3,0,3,3,0)COLORFF00FF;
    STICKLINE(A1 AND A2 AND A3,0,1,3,0)COLORBLUE;
    DRAWTEXT(A3=1,4.8,'攻',COLORRED;
    智勇出击: ZIG(3,6)>REF(ZIG(3,6),1)AND REF(ZIG(3,6),1)<REF(ZIG
    (3,6),2),COLORRED,LINETHICK2;
    DRAWTEXT(智勇出击=1,0.8,'袭',COLORRED;
    小获且退: ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>REF(ZIG
    (3,10),2),COLORBLUE,LINETHICK2;
    DRAWTEXT(小获且退=1,1.3,'',COLORBLUE;
    VAR3:=PEAKBARS(2,15,1)<10;
    VAR5:=IF(VAR3=1,2,0);
    顶:= IF(VAR5=2,2,0);
    大胜且归:IF(顶>REF(顶,1),2,0),COLORRED,LINETHICK2;
    DRAWTEXT(大胜且归=2,2,'',COLORRED;
    TYP := (HIGH + LOW + CLOSE)/3;
    快线:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),COLORRED,NODRAW;
    中线:(TYP-MA(TYP,26))/(0.015*AVEDEV(TYP,26)),COLORGREEN,NODRAW;
    慢线:(TYP-MA(TYP,52))/(0.015*AVEDEV(TYP,52)),COLORBLUE,NODRAW;
    慢线2:(TYP-EMA(TYP,52))/(0.015*AVEDEV(TYP,52)),COLOR0088EE,NODRAW;
    INDEX:=CCI(14);
    CCI买入:CROSS(慢线,中线)AND CROSS(快线,中线);
    STICKLINE(CCI买入,0,3,3,0),COLORRED;
    DRAWTEXT(CCI买入,3.2,'CI买入',COLORRED;
    CCI卖出:中线<REF(快线,1) AND CROSS(快线,350);
    DRAWTEXT(CCI卖出,3.2,'CI卖出',COLORBLUE;
    {CCI买入:CROSS(慢线,中线)AND CROSS(快线,中线) ;
    STICKLINE(CCI买入,0,3,3,0),COLORRED;
    DRAWTEXT(CCI买入,3.2,'CI买入',COLORRED;
    CCI卖出:中线<REF(中线,1) AND CROSS(快线,350);
    DRAWTEXT(CCI卖出,3.2,'CI卖出',COLORBLUE;};
     

     

     来源:程序化99

  • 文华技术人员:   TYP:=(CLOSE+HIGH+LOW)/3; F:=100*(C-REF(C,1))/REF(C,1); S1:=IF(C<REF(O,1) AND F<0,1,0); S2:=IF(C<REF(O,2) AND F<0,1,0); A1:=S1=0 AND REF(S1,1)=1 AND S2=0 AND REF(S2,1)=1 AND CROSS(ZIGZAG(C,3,1) ,REF(ZIGZAG(C ,3,1),1)); A2:=S1=0 AND REF(S1,1)=1 AND S2=0 AND REF(S2,1)=1 AND CROSS(ZIGZAG(C,5,1) ,REF(ZIGZAG(C ,5,1),1)); A3:=S1=0 AND REF(S1,1)=1 AND S2=0 AND REF(S2,1)=1 AND CROSS(ZIGZAG(C,10,1) ,REF(ZIGZAG(C ,10,1),1)); STICKLINE(A1 AND A2 ,0,3,3,0),COLORGREEN; STICKLINE(A1 AND A2 ,0,1,3,0),COLORBLUE; STICKLINE(A1 AND A2 AND A3,0,5,3,0),COLORRED; STICKLINE(A1 AND A2 AND A3,0,3,3,0),COLORFF00FF; STICKLINE(A1 AND A2 AND A3,0,1,3,0),COLORBLUE; DRAWTEXT(A3=1,4.8,'攻',COLORRED; 智勇出击: ZIGZAG(C,6,1)>REF(ZIGZAG(C,6,1),1) AND REF(ZIGZAG(C,6,1),1)<REF(ZIGZAG(C,6,1),2),COLORRED,LINETHICK2; DRAWTEXT(智勇出击=1,0.8,'袭',COLORRED; 小获且退: ZIGZAG(C,10,1)<REF(ZIGZAG(C,10,1),1) AND REF(ZIGZAG(C,10,1),1)>REF(ZIGZAG(C,10,1),2),COLORBLUE,LINETHICK2; DRAWTEXT(小获且退=1,1.3,'',COLORBLUE; VAR3:=PEAKBARS(H,15,1,1)<10; VAR5:=IF(VAR3=1,2,0); 顶:= IF(VAR5=2,2,0); 大胜且归:IF(顶>REF(顶,1),2,0),COLORRED,LINETHICK2; DRAWTEXT(大胜且归=2,2,'',COLORRED; 快线:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),COLORRED,NODRAW; 中线:(TYP-MA(TYP,26))/(0.015*AVEDEV(TYP,26)),COLORGREEN,NODRAW; 慢线:(TYP-MA(TYP,52))/(0.015*AVEDEV(TYP,52)),COLORBLUE,NODRAW; 慢线2:(TYP-EMA(TYP,52))/(0.015*AVEDEV(TYP,52)),COLOR0088EE,NODRAW; INDEX:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)); CCI买入:CROSS(慢线,中线) AND CROSS(快线,中线); STICKLINE(CCI买入,0,3,3,0),COLORRED; DRAWTEXT(CCI买入,3.2,'CI买入',COLORRED; CCI卖出:中线<REF(快线,1) AND CROSS(快线,350); DRAWTEXT(CCI卖出,3.2,'CI卖出',COLORBLUE;  

 

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

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

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

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


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

相关文章

    没有相关内容