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

[求助] 老师 帮忙修改下 谢谢 [文华财经]

  • 咨询内容:  

    A1:=C>REF(C,4);

    A2:=C<REF(C,4);

    T1:=A2 AND REF(A1,1);

    T2:=A2 AND REF(T1,1);

    T3:=A2 AND REF(T2,1);

    T4:=A2 AND REF(T3,1);

    T5:=A2 AND REF(T4,1);

    T6:=A2 AND REF(T5,1);

    T7:=A2 AND REF(T6,1);

    T8:=A2 AND REF(T7,1);

    T9:=A2 AND REF(T8,1);

    TT9:=T9 AND (L<MIN(REF(L,2),REF(L,3)) OR REF(L,1)<MIN(REF(L,2),REF(L,3)));

    B1:=C<REF(C,4);

    B2:=C>REF(C,4);

    D1:=B2 AND REF(B1,1);

    D2:=B2 AND REF(D1,1);

    D3:=B2 AND REF(D2,1);

    D4:=B2 AND REF(D3,1);

    D5:=B2 AND REF(D4,1);

    D6:=B2 AND REF(D5,1);

    D7:=B2 AND REF(D6,1);

    D8:=B2 AND REF(D7,1);

    D9:=B2 AND REF(D8,1);

    TD9:=D9 AND (H>MAX(REF(H,2),REF(H,3)) OR REF(H,1)>MAX(REF(H,2),REF(H,3)));

    N:=BARSLAST(T9);

    TF:=L<MIN(REF(L,N+2),REF(L,N+3));

    PN:=COUNT(TF,N);

    TDF:=TF AND PN<=1 AND NOT(REF(TT9,N));

    DRAWTEXT(T7,L*0.99,ƍ#39);

    DRAWTEXT(T8,L*0.99,Ǝ#39);

    DRAWTEXT(T9,L*0.99,Ə#39),COLORRED;

    DRAWTEXT(TT9,L*0.97,'',COLORRED;

    DRAWTEXT(TDF,L*0.97,'',COLORRED;

    DRAWLINE(T1,H,T9,REF(H,8),1),COLORGREEN,POINTDOT;

    M:=BARSLAST(D9);

    DF:=H>MAX(REF(H,M+2),REF(H,M+3));

    PM:=COUNT(DF,M);

    DDT:=DF AND PM<=1 AND NOT(REF(TD9,M));

    DRAWTEXT(D7,H*1.01,ƍ#39);

    DRAWTEXT(D8,H*1.01,Ǝ#39);

    DRAWTEXT(D9,H*1.01,Ə#39),COLORGREEN;

    DRAWTEXT(TD9,H*1.03,'',COLORGREEN;

    DRAWTEXT(DDT,H*1.03,'',COLORGREEN;

    DRAWLINE(D1,L,D9,REF(L,8),1),COLORRED,POINTDOT;

     

    想让他123456 都显示12红字345浅蓝字 6黄字 谢谢


     

     来源:程序化99

  • 文华技术人员:  这样看下:
    A1:=C>REF(C,4);
    A2:=C<REF(C,4);
    T1:=A2 AND REF(A1,1);
    T2:=A2 AND REF(T1,1);
    T3:=A2 AND REF(T2,1);
    T4:=A2 AND REF(T3,1);
    T5:=A2 AND REF(T4,1);
    T6:=A2 AND REF(T5,1);
    T7:=A2 AND REF(T6,1);
    T8:=A2 AND REF(T7,1);
    T9:=A2 AND REF(T8,1);
    TT9:=T9 AND (L<MIN(REF(L,2),REF(L,3)) OR REF(L,1)<MIN(REF(L,2),REF(L,3)));
    B1:=C<REF(C,4);
    B2:=C>REF(C,4);
    D1:=B2 AND REF(B1,1);
    D2:=B2 AND REF(D1,1);
    D3:=B2 AND REF(D2,1);
    D4:=B2 AND REF(D3,1);
    D5:=B2 AND REF(D4,1);
    D6:=B2 AND REF(D5,1);
    D7:=B2 AND REF(D6,1);
    D8:=B2 AND REF(D7,1);
    D9:=B2 AND REF(D8,1);
    TD9:=D9 AND (H>MAX(REF(H,2),REF(H,3)) OR REF(H,1)>MAX(REF(H,2),REF(H,3)));
    N:=BARSLAST(T9);
    TF:=L<MIN(REF(L,N+2),REF(L,N+3));
    PN:=COUNT(TF,N);
    TDF:=TF AND PN<=1 AND NOT(REF(TT9,N));
    DRAWTEXT(T7,L*0.99,'1',COLORRED;
    DRAWTEXT(T8,L*0.99,'2',COLORRED;
    DRAWTEXT(T9,L*0.99,'3',COLORCYAN;
    DRAWTEXT(TT9,L*0.97,'',COLORRED;
    DRAWTEXT(TDF,L*0.97,'',COLORRED;
    DRAWLINE(T1,H,T9,REF(H,8),1),COLORGREEN,POINTDOT;
    M:=BARSLAST(D9);
    DF:=H>MAX(REF(H,M+2),REF(H,M+3));
    PM:=COUNT(DF,M);
    DDT:=DF AND PM<=1 AND NOT(REF(TD9,M));
    DRAWTEXT(D7,H*1.01,'4',COLORCYAN;
    DRAWTEXT(D8,H*1.01,'5',COLORCYAN;
    DRAWTEXT(D9,H*1.01,'6',COLORYELLOW;
    DRAWTEXT(TD9,H*1.03,'',COLORGREEN;
    DRAWTEXT(DDT,H*1.03,'',COLORGREEN;
    DRAWLINE(D1,L,D9,REF(L,8),1),COLORRED,POINTDOT;

     

     来源: WWW.CXH99.COM

  • 文华客服:

    老师 123 和789 不显示了   12红字 345浅蓝 678黄色 9绿色 麻烦老师再给看下

     

  • 网友回复:  您1楼提供的源码存在乱码,您这样操作,在电脑桌面建立一个txt文档,将源码保存在文档里,再上传我们看下。

     

  • 网友回复:  
     下载信息  [文件大小:   下载次数: ]文件名:td9.txt
      

 

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

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

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

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


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

相关文章

    没有相关内容