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

老师,帮忙改一下 [文华财经]

  • 咨询内容:   V1:SCALE*V,NODRAW;V2:(1-SCALE)*V,NODRAW;NBA:=BARSLAST(DATE<>REF(DATE,1))+1;AY:=BACKSET(ISLASTBAR,HHVBARS(V1,NBA)+1),NODRAW;BY:=BACKSET(ISLASTBAR,HHVBARS(V2,NBA)+1),NODRAW;DRAWCOLORKLINE(CROSS(AY,0.5),COLORMAGENTA,0);DRAWCOLORKLINE(CROSS(BY,0.5),COLORCYAN,0);DRAWSL(ISLASTBAR&&NOT(EXIST(C>VALUEWHEN(CROSS(AY,0.5),H),DAYBARPOS)),VALUEWHEN(CROSS(AY,0.5),H),0,-BARSLAST(CROSS(AY,0.5)),0,COLORMAGENTA),LINETHICK5;//DRAWHORIZONTALLINE(,H,COLORMAGENTA),LINETHICK5;DRAWSL(ISLASTBAR&&NOT(EXIST(C<VALUEWHEN(CROSS(BY,0.5),L),DAYBARPOS)),VALUEWHEN(CROSS(BY,0.5),L),0,-BARSLAST(CROSS(BY,0.5)),0,COLORCYAN),LINETHICK5;//DRAWHORIZONTALLINE(,L,COLORCYAN),LINETHICK5;DRAWSL(ISLASTBAR&&EXIST(C>VALUEWHEN(CROSS(AY,0.5),H),DAYBARPOS),VALUEWHEN(CROSS(AY,0.5),H),0,-BARSLAST(CROSS(AY,0.5)),0,COLORMAGENTA),DOT;DRAWSL(ISLASTBAR&&EXIST(C<VALUEWHEN(CROSS(BY,0.5),L),DAYBARPOS),VALUEWHEN(CROSS(BY,0.5),L),0,-BARSLAST(CROSS(BY,0.5)),0,COLORCYAN),DOT;

    N:=DAYBARPOS;X:=LLVBARS(L,N);K1:=IF(X>=1,LLV(L,X),100000);K2:=IF(X<(N-1),REF(LLV(L,REFX1(N-1-X,10000)),X+1),100000);低点:=LLV(L,N);次低点:=MIN(K1,K2);T2:=BACKSET(ISLASTBAR,BARSLAST(L=REFX1(次低点,50))+1);CROSS(T2&&次低点>2500,0.5),ICON(1,'CO88';
    T:=HHVBARS(H,N);B1:=IF(T>=1,HHV(H,T),0);B2:=IF(T<N-1,REF(HHV(H,REFX1(N-1-T,10000)),T+1),0);高点:=HHV(H,N);次高点:=MAX(B1,B2);
    G2:=BACKSET(ISLASTBAR,BARSLAST(H=REFX1(次高点,50))+1);CROSS(G2&&次高点>2500,0.5),ICON(1,'CO88';
    现在是突破以后变成虚线,再加一个条件 突破反方向变成虚线以后,以前的解除虚线,回复实线

     

     来源:程序化99

  • 文华技术人员: 参考:
    V1:SCALE*V,NODRAW;
    V2:(1-SCALE)*V,NODRAW;
    NBA:=BARSLAST(DATE<>REF(DATE,1))+1;
    AY:=BACKSET(ISLASTBAR,HHVBARS(V1,NBA)+1),NODRAW;
    BY:=BACKSET(ISLASTBAR,HHVBARS(V2,NBA)+1),NODRAW;
    DRAWCOLORKLINE(CROSS(AY,0.5),COLORMAGENTA,0);
    DRAWCOLORKLINE(CROSS(BY,0.5),COLORCYAN,0);
    DRAWSL(ISLASTBAR&&NOT(C>VALUEWHEN(CROSS(AY,0.5),H)),VALUEWHEN(CROSS(AY,0.5),H),0,-BARSLAST(CROSS(AY,0.5)),0,COLORMAGENTA),LINETHICK5;
    //DRAWHORIZONTALLINE(,H,COLORMAGENTA),LINETHICK5;
    DRAWSL(ISLASTBAR&&NOT(EXIST(C<VALUEWHEN(CROSS(BY,0.5),L),DAYBARPOS)),VALUEWHEN(CROSS(BY,0.5),L),0,-BARSLAST(CROSS(BY,0.5)),0,COLORCYAN),LINETHICK5;
    //DRAWHORIZONTALLINE(,L,COLORCYAN),LINETHICK5;
    DRAWSL(ISLASTBAR&&C>VALUEWHEN(CROSS(AY,0.5),H),VALUEWHEN(CROSS(AY,0.5),H),0,-BARSLAST(CROSS(AY,0.5)),0,COLORMAGENTA),DOT;
    DRAWSL(ISLASTBAR&&C<VALUEWHEN(CROSS(BY,0.5),L),VALUEWHEN(CROSS(BY,0.5),L),0,-BARSLAST(CROSS(BY,0.5)),0,COLORCYAN),DOT;N:=DAYBARPOS;
    X:=LLVBARS(L,N);
    K1:=IF(X>=1,LLV(L,X),100000);
    K2:=IF(X<(N-1),REF(LLV(L,REFX1(N-1-X,10000)),X+1),100000);
    低点:=LLV(L,N);
    次低点:=MIN(K1,K2);
    T2:=BACKSET(ISLASTBAR,BARSLAST(L=REFX1(次低点,50))+1);
    CROSS(T2&&次低点>2500,0.5),ICON(1,'ICO88');T:=HHVBARS(H,N);
    B1:=IF(T>=1,HHV(H,T),0);
    B2:=IF(T<N-1,REF(HHV(H,REFX1(N-1-T,10000)),T+1),0);
    高点:=HHV(H,N);
    次高点:=MAX(B1,B2);G2:=BACKSET(ISLASTBAR,BARSLAST(H=REFX1(次高点,50))+1);
    CROSS(G2&&次高点>2500,0.5),ICON(1,'ICO88');
       

 

有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友

可联系技术人员 QQ: 511411198  点击这里给我发消息进行 有偿 编写!不贵!点击查看价格!


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

相关文章

    没有相关内容