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

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

  • 咨询内容:  TJ1:H>REF(H,1)&&L>REF(L,1)&&REFX(L,1)<L&&REFX(H,1)<=H,NODRAW;TJ2:H>REF(H,1)&&L>=REF(L,1)&&REFX(H,1)<H&&REFX(L,1)>=L&&REFX(L,2)<REFX(L,1)&&REFX(H,2)<H,NODRAW;TJ3:H>REF(H,1)&&L<REF(L,1)&&REFX(H,1)<H&&REFX(L,1)>L,NODRAW;TJ4:H<REF(H,1)&&L<REF(L,1)&&REFX(L,1)>=L&&REFX(H,1)>H,NODRAW;TJ5:H<REF(H,1)&&L<REF(L,1)&&REFX(H,1)<H&&REFX(L,1)>=L&&REFX(H,2)>REFX(H,1)&&REFX(L,2)>L,NODRAW;TJ6:H<REF(H,1)&&L<REF(L,1)&&REFX(H,1)<H&&REFX(L,1)>=L&&REFX(H,2)<REFX(H,1)&&REFX(H,3)>REFX(H,2)&&REFX(L,3)>L&&REFX(L,2)>L,NODRAW;TJ7:H>REF(H,1)&&L<REF(L,1)&&REFX(H,1)<H&&REFX(L,1)>L,NODRAW;TJ8:H>=REF(H,1)&&L<=REF(L,1)&&REFX(H,1)>=H&&REFX(L,1)>=L,NODRAW;TJ9:H>=REF(H,1)&&L<=REF(L,1)&&REFX(L,1)<=L&&REFX(H,1)<=H,NODRAW;TJ10:H>=REF(H,1)&&L>=REF(L,1)&&REFX(L,1)>=L&&REFX(H,1)<=H&&REFX(L,2)>=REFX(L,1)&&REFX(H,2)<H&&REFX(L,3)<REFX(L,2)&&REFX(H,3)<H,NODRAW;IF(TJ1||TJ2||TJ3||TJ9||TJ10,H,NULL),CIRCLEDOT,COLORRED;IF(TJ4||TJ5||TJ6||TJ7||TJ8,L,NULL),CIRCLEDOT,COLORBLUE;当连续二个顶分形或三个或连续的顶分形中间无底分形时只标注最高的顶分形。当连续二个底分形或三个或连续的底分形中间无顶分形时只标注最低的底分形。


    文件名:无标题.jpg

     

  • 文华技术人员:  这样改下:
    TJ1:H>REF(H,1)&&L>REF(L,1)&&REFX(L,1)<L&&REFX(H,1)<=H,NODRAW;TJ2:H>REF(H,1)&&L>=REF(L,1)&&REFX(H,1)<H&&REFX(L,1)>=L&&REFX(L,2)<REFX(L,1)&&REFX(H,2)<H,NODRAW;TJ3:H>REF(H,1)&&L<REF(L,1)&&REFX(H,1)<H&&REFX(L,1)>L,NODRAW;TJ4:H<REF(H,1)&&L<REF(L,1)&&REFX(L,1)>=L&&REFX(H,1)>H,NODRAW;TJ5:H<REF(H,1)&&L<REF(L,1)&&REFX(H,1)<H&&REFX(L,1)>=L&&REFX(H,2)>REFX(H,1)&&REFX(L,2)>L,NODRAW;TJ6:H<REF(H,1)&&L<REF(L,1)&&REFX(H,1)<H&&REFX(L,1)>=L&&REFX(H,2)<REFX(H,1)&&REFX(H,3)>REFX(H,2)&&REFX(L,3)>L&&REFX(L,2)>L,NODRAW;TJ7:H>REF(H,1)&&L<REF(L,1)&&REFX(H,1)<H&&REFX(L,1)>L,NODRAW;TJ8:H>=REF(H,1)&&L<=REF(L,1)&&REFX(H,1)>=H&&REFX(L,1)>=L,NODRAW;TJ9:H>=REF(H,1)&&L<=REF(L,1)&&REFX(L,1)<=L&&REFX(H,1)<=H,NODRAW;TJ10:H>=REF(H,1)&&L>=REF(L,1)&&REFX(L,1)>=L&&REFX(H,1)<=H&&REFX(L,2)>=REFX(L,1)&&REFX(H,2)<H&&REFX(L,3)<REFX(L,2)&&REFX(H,3)<H,NODRAW;TOP:=TJ1||TJ2||TJ3||TJ9||TJ10;BOTTOM:=TJ4||TJ5||TJ6||TJ7||TJ8;IF(TOP&&H=HHV(H,BARSLAST(BOTTOM)+1),H,NULL),CIRCLEDOT,COLORRED;IF(BOTTOM&&L=LLV(L,BARSLAST(TOP)+1),L,NULL),CIRCLEDOT,COLORBLUE;

     

  • 文华客服:  


    文件名:无标题.jpg
    加载了还是有很多没合并,帮忙看看哪里问题 塑料1705日图

     

  • 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SS(BOTTOM,0.5)&&EVERY(M1-N1=1,2),N1);N2:=VALUEWHEN(CROSS(TOP,0.5),LLVBARS(IF(BOTTOM,L,100000),SUMBARS(TOP,2)))+1;M2:=VALUEWHEN(CROSS(TOP,0.5),SUMBARS(TOP,2));BB:=BACKSET(CROSS(TOP,0.5),N2);DD:=BACKSET(BB=1&&M2-N2=1,N2);DD1:=BACKSET(CROSS(TOP,0.5)&&EVERY(M2-N2=1,2),N2);EE:=VALUEWHEN(CROSS(BOTTOM,0.5),COUNT(TOP,SUMBARS(BOTTOM,2))=1);FF:=VALUEWHEN(CROSS(TOP,0.5),COUNT(BOTTOM,SUMBARS(TOP,2))=1);XX:=BACKSET(CROSS(BOTTOM,0.5)&&EE,BARSLAST(TOP)+1);YY:=BACKSET(CROSS(TOP,0.5)&&FF,BARSLAST(BOTTOM)+1);IF((CROSS(AA,0.5)||XX=1||CROSS(CC,0.5)||CROSS(CC1,0.5))&&TOP,H,NULL),CIRCLEDOT,COLORRED;IF((CROSS(BB,0.5)||YY=1||CROSS(DD,0.5)||CROSS(DD1,0.5))&&BOTTOM,L,NULL),CIRCLEDOT,COLORBLUE;

     

  • 网友回复:  按以上公式帮忙在标注下ABCD每个顶分形都可以是ABC的开始,当初现左顶低于右顶时,左顶标注为A,右顶标注为C,中间底标注为B,当ABC都确定了突破B后的底标为D,其后一直突破D后的每个底都标为D。(这里ABCD用绿色)每个底分形都可以是ABC的开始,当初现右底高于左底时,左底标为A,右底标为C,中间顶标注为B,当ABC都确定了,突破B后的顶为D,其后一直突破D后的每个顶标为D。(这里ABCD用红色)


    文件名:无标题.jpg

 

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

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


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

相关文章

    没有相关内容