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

修改一下感谢81 [文华财经]

  • 咨询内容:  N:=5;CURRBARSCOUNT:=REFX1(BARPOS,9999)-BARPOS+1;NAS:=33;UR:=6;LR:=6;TC1:=IF(H=HHV(H,8*UR),H,NULL);TC2:=REFX1(BARSLAST(TC1=H),10000)+1;UPPER:=REFX1(IF(TC2=1,H,REF(H,TC2-1)),10000);BC1:=IF(L=LLV(L,8*LR),L,NULL);BC2:=REFX1(BARSLAST(BC1=L),10000)+1;LOWER:=REFX1(IF(BC2=1,L,REF(L,BC2-1)),10000);LP:=CURRBARSCOUNT<=BC2 AND L=LOWER;HP:=CURRBARSCOUNT<=TC2 AND H=UPPER;STICKLINE1(IF(1,HP,LP),LOWER,UPPER,2,0),RGB(78,154,154);////////////////////宽窄调整STICKLINE1(IF(1,LP,HP),LOWER,UPPER,2,0),RGB(255,155,155);/////////////////////宽窄调整STICKLINE1(CURRBARSCOUNT<=MAX(BC2,TC2)&&CURRBARSCOUNT>=MIN(BC2,TC2),UPPER,UPPER+1*MINPRICE,5,0),RGB(78,154,154);STICKLINE1(CURRBARSCOUNT<=MAX(BC2,TC2)&&CURRBARSCOUNT>=MIN(BC2,TC2),LOWER,LOWER-1*MINPRICE,5,0),RGB(255,155,155);
    AA:=BACKSET(ISLASTBAR,TC2)+BACKSET(ISLASTBAR,BC2)=1,ICON(1,'CO1';HH:=BACKSET(REFX(CROSS(BACKSET(ISLASTBAR,SUMBARS(LP,1))=1,0.5),1),HHVBARS(H,0)+1);LL:=BACKSET(REFX(CROSS(BACKSET(ISLASTBAR,SUMBARS(HP,1))=1,0.5),1),LLVBARS(L,0)+1);VERTLINE1(BARSLASTCOUNT(HH)=1);DRAWNUMBER1(BARSLASTCOUNT(HH)=1,H,H,2);VERTLINE1(BARSLASTCOUNT(LL)=1);DRAWNUMBER1(BARSLASTCOUNT(LL)=1,L,L,2),VALIGN0;


    有连根白色竖线,253.20改红色,标注奔牛。2089.20改绿色,标注奔熊。

     

     来源:程序化99

  • 文华技术人员:  参考:
      N:=5; CURRBARSCOUNT:=REFX1(BARPOS,9999)-BARPOS+1; NAS:=33; UR:=6; LR:=6; TC1:=IF(H=HHV(H,8*UR),H,NULL); TC2:=REFX1(BARSLAST(TC1=H),10000)+1; UPPER:=REFX1(IF(TC2=1,H,REF(H,TC2-1)),10000); BC1:=IF(L=LLV(L,8*LR),L,NULL); BC2:=REFX1(BARSLAST(BC1=L),10000)+1; LOWER:=REFX1(IF(BC2=1,L,REF(L,BC2-1)),10000); LP:=CURRBARSCOUNT<=BC2 AND L=LOWER; HP:=CURRBARSCOUNT<=TC2 AND H=UPPER; STICKLINE1(IF(1,HP,LP),LOWER,UPPER,2,0),RGB(78,154,154);////////////////////宽窄调整 STICKLINE1(IF(1,LP,HP),LOWER,UPPER,2,0),RGB(255,155,155);/////////////////////宽窄调整 STICKLINE1(CURRBARSCOUNT<=MAX(BC2,TC2)&&CURRBARSCOUNT>=MIN(BC2,TC2),UPPER,UPPER+1*MINPRICE,5,0),RGB(78,154,154); STICKLINE1(CURRBARSCOUNT<=MAX(BC2,TC2)&&CURRBARSCOUNT>=MIN(BC2,TC2),LOWER,LOWER-1*MINPRICE,5,0),RGB(255,155,155);
    AA:=BACKSET(ISLASTBAR,TC2)+BACKSET(ISLASTBAR,BC2)=1,ICON(1,'CO1'; HH:=BACKSET(REFX(CROSS(BACKSET(ISLASTBAR,SUMBARS(LP,1))=1,0.5),1),HHVBARS(H,0)+1); LL:=BACKSET(REFX(CROSS(BACKSET(ISLASTBAR,SUMBARS(HP,1))=1,0.5),1),LLVBARS(L,0)+1); VERTLINE1(BARSLASTCOUNT(HH)=1); DRAWTEXT(BARSLASTCOUNT(HH)=1,H,'熊',FONTSIZE24; DRAWNUMBER1(BARSLASTCOUNT(HH)=1,H,H,2),COLORGREEN; VERTLINE1(BARSLASTCOUNT(LL)=1); DRAWTEXT(BARSLASTCOUNT(LL)=1,L,'牛',VALIGN0,FONTSIZE24; DRAWNUMBER1(BARSLASTCOUNT(LL)=1,L,L,2),VALIGN0,COLORGREEN;

     

     来源: WWW.CXH99.COM

  • 文华客服:  请把竖线也改了,谢谢

     

  • 网友回复:   
  • 网友回复:
     参考:
      N:=5; CURRBARSCOUNT:=REFX1(BARPOS,9999)-BARPOS+1; NAS:=33; UR:=6; LR:=6; TC1:=IF(H=HHV(H,8*UR),H,NULL); TC2:=REFX1(BARSLAST(TC1=H),10000)+1; UPPER:=REFX1(IF(TC2=1,H,REF(H,TC2-1)),10000); BC1:=IF(L=LLV(L,8*LR),L,NULL); BC2:=REFX1(BARSLAST(BC1=L),10000)+1; LOWER:=REFX1(IF(BC2=1,L,REF(L,BC2-1)),10000); LP:=CURRBARSCOUNT<=BC2 AND L=LOWER; HP:=CURRBARSCOUNT<=TC2 AND H=UPPER; STICKLINE1(IF(1,HP,LP),LOWER,UPPER,2,0),RGB(78,154,154);////////////////////宽窄调整 STICKLINE1(IF(1,LP,HP),LOWER,UPPER,2,0),RGB(255,155,155);/////////////////////宽窄调整 STICKLINE1(CURRBARSCOUNT<=MAX(BC2,TC2)&&CURRBARSCOUNT>=MIN(BC2,TC2),UPPER,UPPER+1*MINPRICE,5,0),RGB(78,154,154); STICKLINE1(CURRBARSCOUNT<=MAX(BC2,TC2)&&CURRBARSCOUNT>=MIN(BC2,TC2),LOWER,LOWER-1*MINPRICE,5,0),RGB(255,155,155);
    AA:=BACKSET(ISLASTBAR,TC2)+BACKSET(ISLASTBAR,BC2)=1,ICON(1,'CO1'; HH:=BACKSET(REFX(CROSS(BACKSET(ISLASTBAR,SUMBARS(LP,1))=1,0.5),1),HHVBARS(H,0)+1); LL:=BACKSET(REFX(CROSS(BACKSET(ISLASTBAR,SUMBARS(HP,1))=1,0.5),1),LLVBARS(L,0)+1); VERTLINE1(BARSLASTCOUNT(HH)=1),COLORGREEN; DRAWTEXT(BARSLASTCOUNT(HH)=1,H,'熊',FONTSIZE24,COLORGREEN; DRAWNUMBER1(BARSLASTCOUNT(HH)=1,H,H,2),COLORGREEN; VERTLINE1(BARSLASTCOUNT(LL)=1),COLORRED; DRAWTEXT(BARSLASTCOUNT(LL)=1,L,'牛',VALIGN0,FONTSIZE24,COLORRED; DRAWNUMBER1(BARSLASTCOUNT(LL)=1,L,L,2),VALIGN0,COLORGREEN;

 

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

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

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

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


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

相关文章

    没有相关内容