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

麻烦老师改一下为谢!!!! [文华财经]

  • 咨询内容:  

    MA8:=1;
    自动画线:=0;
    //自画线;
    HIGHN:=(10);
    LOWN:=(10);
    //HIGHDISPLAY:=20;
    //LOWDISPLAY:=20;
    //ZGDISPLAY:=20;
    //MADISPLAY:=20;
    AAUU:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);
    QY:=BACKSET(AAUU,HIGHN+1);
    CCUU:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);
    //DRAWICON(CCUU,H,'CO5';
    DDD:=BARSLAST(CCUU);
    CURRBARSCOUNT:=DATACOUNT-BARPOS;
    GDTS:=IF(CCUU,CURRBARSCOUNT,0);
    DINGBU:=IF(DDD,REF(C,DDD),C);
    {顶部}DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);
    DINGBU1:=REF(DINGBU,DDD+1);
    GDCS1:=(REFX1(DINGBUTS,10000))*自动画线*MA8;
    DINGBUTS1:=REF(DINGBUTS,DDD+1);
    GDCS2:=(REFX1(DINGBUTS1,10000))*自动画线*MA8;
    DINGBU2:=(REF(DINGBU1,DDD+1))*MA8;
    MM:=IF(CURRBARSCOUNT>GDCS2,0,1);
    //高压:TRENDLINES(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H),COLORCYAN,LINETHICK2, NOTEXT;

    AA1A:=REF(L,LOWN)=LLV(L,2*LOWN+1);
    QY1:=BACKSET(AA1A,LOWN+1);
    CCA1A:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);
    //DRAWICON(CCA1A,L-2,'CO4';
    DD1A:=BARSLAST(CCA1A);
    DDTS:=IF(CCA1A,CURRBARSCOUNT,0);
    YDB:=IF(DD1A,REF(L,DD1A),L);
    DDTS1:=(IF(DD1A,REF(DDTS,DD1A),DDTS))*自动画线*MA8;
    DDCS1:=REFX1(DDTS1,10000);
    ZDB:=REF(YDB,DD1A+1);
    DDTS2:=REF(DDTS1,DD1A+1);
    DDCS2:=(REFX1(DDTS2,10000))*自动画线*MA8;
    //低撑:TRENDLINES(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L),COLORWHITE,LINETHICK2, NOTEXT;

    DRAWLINE1( CROSS(BACKSET(ISLASTBAR,SUMBARS(CROSS(QY1,0.5),3)),0.5),L,CROSS(QY1,0.5),L,1),COLORYELLOW,DASHDOTDOT, NOTEXT;射线1
    DRAWLINE1( CROSS(BACKSET(ISLASTBAR,SUMBARS(CROSS(QY,0.5),3)),0.5),H,CROSS(QY,0.5),H,1),COLORGREEN,DASHDOTDOT;射线2

    请老师在两射线的起点向后画直线至最新K线为止,并在末端标注价位C>直线时为红色C<直线时为绿色

     

     来源:程序化99

  • 文华技术人员:  请稍等

     

     来源: WWW.CXH99.COM

  • 文华客服:  谢谢齐老师还在加班辛苦了!!

     

  • 网友回复:  参考;
    MA8:=1;自动画线:=0;//自画线;HIGHN:=(10);LOWN:=(10);//HIGHDISPLAY:=20;//LOWDISPLAY:=20;//ZGDISPLAY:=20;//MADISPLAY:=20;AAUU:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);QY:=BACKSET(AAUU,HIGHN+1);CCUU:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);//DRAWICON(CCUU,H,'CO5';DDD:=BARSLAST(CCUU);CURRBARSCOUNT:=DATACOUNT-BARPOS;GDTS:=IF(CCUU,CURRBARSCOUNT,0);DINGBU:=IF(DDD,REF(C,DDD),C);{顶部}DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);DINGBU1:=REF(DINGBU,DDD+1);GDCS1:=(REFX1(DINGBUTS,10000))*自动画线*MA8;DINGBUTS1:=REF(DINGBUTS,DDD+1);GDCS2:=(REFX1(DINGBUTS1,10000))*自动画线*MA8;DINGBU2:=(REF(DINGBU1,DDD+1))*MA8;MM:=IF(CURRBARSCOUNT>GDCS2,0,1);//高压:TRENDLINES(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H),COLORCYAN,LINETHICK2, NOTEXT;
    AA1A:=REF(L,LOWN)=LLV(L,2*LOWN+1);QY1:=BACKSET(AA1A,LOWN+1);CCA1A:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);//DRAWICON(CCA1A,L-2,'CO4';DD1A:=BARSLAST(CCA1A);DDTS:=IF(CCA1A,CURRBARSCOUNT,0);YDB:=IF(DD1A,REF(L,DD1A),L);DDTS1:=(IF(DD1A,REF(DDTS,DD1A),DDTS))*自动画线*MA8;DDCS1:=REFX1(DDTS1,10000);ZDB:=REF(YDB,DD1A+1);DDTS2:=REF(DDTS1,DD1A+1);DDCS2:=(REFX1(DDTS2,10000))*自动画线*MA8;//低撑:TRENDLINES(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L),COLORWHITE,LINETHICK2, NOTEXT;
    DRAWLINE1( CROSS(BACKSET(ISLASTBAR,SUMBARS(CROSS(QY1,0.5),3)),0.5),L,CROSS(QY1,0.5),L,1),COLORYELLOW,DASHDOTDOT, NOTEXT;DRAWSL(ISLASTBAR&&  C> VALUEWHEN(CROSS(BACKSET(ISLASTBAR,SUMBARS(CROSS(QY1,0.5),3)),0.5),L),VALUEWHEN(CROSS(BACKSET(ISLASTBAR,SUMBARS(CROSS(QY1,0.5),3)),0.5),L),0,-SUMBARS(CROSS(QY1,0.5),3)+1,0,COLORRED);DRAWSL(ISLASTBAR&&  C< VALUEWHEN(CROSS(BACKSET(ISLASTBAR,SUMBARS(CROSS(QY1,0.5),3)),0.5),L),VALUEWHEN(CROSS(BACKSET(ISLASTBAR,SUMBARS(CROSS(QY1,0.5),3)),0.5),L),0,-SUMBARS(CROSS(QY1,0.5),3)+1,0,COLORGREEN);
    DRAWSL(ISLASTBAR&&  C> VALUEWHEN(CROSS(BACKSET(ISLASTBAR,SUMBARS(CROSS(QY,0.5),3)),0.5),H),VALUEWHEN(CROSS(BACKSET(ISLASTBAR,SUMBARS(CROSS(QY,0.5),3)),0.5),H),0,-SUMBARS(CROSS(QY,0.5),3)+1,0,COLORRED);DRAWSL(ISLASTBAR&&  C< VALUEWHEN(CROSS(BACKSET(ISLASTBAR,SUMBARS(CROSS(QY,0.5),3)),0.5),H),VALUEWHEN(CROSS(BACKSET(ISLASTBAR,SUMBARS(CROSS(QY,0.5),3)),0.5),H),0,-SUMBARS(CROSS(QY,0.5),3)+1,0,COLORGREEN);
    //射线1DRAWLINE1( CROSS(BACKSET(ISLASTBAR,SUMBARS(CROSS(QY,0.5),3)),0.5),H,CROSS(QY,0.5),H,1),COLORGREEN,DASHDOTDOT;//射线2

     

  • 网友回复:  老师早上好!4楼射线能否根据直线同步变色,射线也改成至最后K线为止,请修改

 

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

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

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

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


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

相关文章

    没有相关内容