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

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

  • 咨询内容:  N:=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),NODRAW;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),NODRAW;CURRBARSCOUNT:=DATACOUNT-BARPOS+1;LP:CURRBARSCOUNT<=BC2 AND L=LOWER,NODRAW;HP:CURRBARSCOUNT<=TC2 AND H=UPPER,NODRAW;N1:=BARSLAST(LP)+1,NODRAW;N2:=BARSLAST(HP)+1,NODRAW;

    NOD:=(IF(TC2>BC2,TC2,BC2)-IF(TC2>BC2,BC2,TC2));LR1:=FORCAST(C,NOD+1);NP:IF(CURRBARSCOUNT<=MAX(BC2,TC2),REFX1(IF(MIN(TC2,BC2)=1,LR1,REF(LR1,MIN(TC2,BC2)-1)),10000),NULL),POINTDOT,COLORFFFFFF;LR2:=SLOPE(C,NOD+1);LR3:=REFX1(IF(MIN(TC2,BC2)=1,LR2,REF(LR2,MIN(TC2,BC2)-1)),10000);FP:NP-LR3*(NOD),POINTDOT,COLORFFFFFF;EQU:(NP+FP)/2,COLORFFFFFF,LINETHICK2;、
    向上突破画红色中轴 向下突破画青色中轴 谢谢

     

     来源:程序化99

  • 文华技术人员: 参考:
    N:=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),NODRAW; 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),NODRAW; CURRBARSCOUNT:=DATACOUNT-BARPOS+1; LP:CURRBARSCOUNT<=BC2 AND L=LOWER,NODRAW; HP:CURRBARSCOUNT<=TC2 AND H=UPPER,NODRAW; N1:=BARSLAST(LP)+1,NODRAW; N2:=BARSLAST(HP)+1,NODRAW;

    NOD:=(IF(TC2>BC2,TC2,BC2)-IF(TC2>BC2,BC2,TC2)); LR1:=FORCAST(C,NOD+1); NP:IF(CURRBARSCOUNT<=MAX(BC2,TC2),REFX1(IF(MIN(TC2,BC2)=1,LR1,REF(LR1,MIN(TC2,BC2)-1)),10000),NULL),POINTDOT,COLORFFFFFF; LR2:=SLOPE(C,NOD+1); LR3:=REFX1(IF(MIN(TC2,BC2)=1,LR2,REF(LR2,MIN(TC2,BC2)-1)),10000); FP:NP-LR3*(NOD),POINTDOT,COLORFFFFFF;
    EQU:=(NP+FP)/2,COLORFFFFFF,LINETHICK2; IF(C>=EQU,EQU,NULL),COLORRED,LINETHICK2; IF(C<EQU,EQU,NULL),COLORCYAN,LINETHICK2;

     

     来源: WWW.CXH99.COM

  • 文华客服:  以最后一次突破为准,整根变色吧 现在一半红一半绿的

     

  • 网友回复:  突破中轴以后,打到虚线为准,为突破,中轴在变色

     

  • 网友回复:  这样吗
    N:=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),NODRAW; 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),NODRAW; CURRBARSCOUNT:=DATACOUNT-BARPOS+1; LP:CURRBARSCOUNT<=BC2 AND L=LOWER,NODRAW; HP:CURRBARSCOUNT<=TC2 AND H=UPPER,NODRAW; N1:=BARSLAST(LP)+1,NODRAW; N2:=BARSLAST(HP)+1,NODRAW;

    NOD:=(IF(TC2>BC2,TC2,BC2)-IF(TC2>BC2,BC2,TC2)); LR1:=FORCAST(C,NOD+1); NP:IF(CURRBARSCOUNT<=MAX(BC2,TC2),REFX1(IF(MIN(TC2,BC2)=1,LR1,REF(LR1,MIN(TC2,BC2)-1)),10000),NULL),POINTDOT,COLORFFFFFF; LR2:=SLOPE(C,NOD+1); LR3:=REFX1(IF(MIN(TC2,BC2)=1,LR2,REF(LR2,MIN(TC2,BC2)-1)),10000); FP:NP-LR3*(NOD),POINTDOT,COLORFFFFFF;
    EQU:(NP+FP)/2,COLORFFFFFF,LINETHICK2,NODRAW; DRAWSL(ISLASTBAR&&C>=NP,EQU,0,-BARSLAST(EQU>0&&REF(ISNULL(EQU),1)),0,COLORRED),LINETHICK2; DRAWSL(ISLASTBAR&&C<FP,EQU,0,-BARSLAST(EQU>0&&REF(ISNULL(EQU),1)),0,COLORCYAN),LINETHICK2; //IF(C>=NP,EQU,NULL),COLORRED,LINETHICK2; //IF(C<FP,EQU,NULL),COLORCYAN,LINETHICK2;

 

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

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


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

相关文章

    没有相关内容