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

编写射线 [文华财经]

  • 咨询内容:

    老师,可以倒数第二个和第三个点连接的线段,用虚线向右延伸吗




    文件名:screenshot20200219084759.png 

     

     来源:程序化99

  • 文华技术人员:   CURRBARSCOUNT:=REFX1(BARPOS,9999)-BARPOS+1; HIGHN:=10; LOWN:=10; HIGHDISPLAY:=0; LOWDISPLAY:=0; ZGDISPLAY:=0; MADISPLAY:=0; AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1); QY:=BACKSET(AA,HIGHN+1); CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1); DDD:=BARSLAST(CC); GDTS:=IF(CC,CURRBARSCOUNT,0); DINGBU:=IF(DDD,REF(H,DDD),H); {顶部 } DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS); DINGBU1:=REF(DINGBU,DDD+1); GDCS1:=REFX1(DINGBUTS,9999); DINGBUTS1:=REF(DINGBUTS,DDD+1); GDCS2:=REFX1(DINGBUTS1,9999); DINGBU2:=REF(DINGBU1,DDD+1); MM:=IF(CURRBARSCOUNT>GDCS2,0,1); 上轨:TRENDLINES(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H); DRAWLINE1(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1) ,COLORBLUE,LINETHICK1; POLYLINE1(CROSS(QY,0.5),H); AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1); QY1:=BACKSET(AA1,LOWN+1); CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1); DD1:=BARSLAST(CC1); DDTS:=IF(CC1,CURRBARSCOUNT,0); YDB:=IF(DD1,REF(L,DD1),L); DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS); DDCS1:=REFX1(DDTS1,9999); ZDB:=REF(YDB,DD1+1); DDTS2:=REF(DDTS1,DD1+1); DDCS2:=REFX1(DDTS2,9999); 下轨:TRENDLINES(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L); DRAWLINE1(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1), COLORRED,LINETHICK1; POLYLINE1(CROSS(QY1,0.5),L);

     

     来源: WWW.CXH99.COM

  • 文华客服:  参考:
    CURRBARSCOUNT:=REFX1(BARPOS,9999)-BARPOS+1; HIGHN:=10; LOWN:=10; HIGHDISPLAY:=0; LOWDISPLAY:=0; ZGDISPLAY:=0; MADISPLAY:=0; AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1); QY:=BACKSET(AA,HIGHN+1); CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1); DDD:=BARSLAST(CC); GDTS:=IF(CC,CURRBARSCOUNT,0); DINGBU:=IF(DDD,REF(H,DDD),H); {顶部 } DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS); DINGBU1:=REF(DINGBU,DDD+1); GDCS1:=REFX1(DINGBUTS,9999); DINGBUTS1:=REF(DINGBUTS,DDD+1); GDCS2:=REFX1(DINGBUTS1,9999); DINGBU2:=REF(DINGBU1,DDD+1); MM:=IF(CURRBARSCOUNT>GDCS2,0,1); 上轨:=TRENDLINES(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H); //DRAWLINE1(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1) ,COLORBLUE,LINETHICK1; POLYLINE1(CROSS(QY,0.5),H); DRAWLINE1( CROSS(BACKSET(ISLASTBAR,SUMBARS(CROSS(QY,0.5),3)),0.5),H,CROSS(QY,0.5),H,1),COLORYELLOW,DOT;
    AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1); QY1:=BACKSET(AA1,LOWN+1); CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1); DD1:=BARSLAST(CC1); DDTS:=IF(CC1,CURRBARSCOUNT,0); YDB:=IF(DD1,REF(L,DD1),L); DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS); DDCS1:=REFX1(DDTS1,9999); ZDB:=REF(YDB,DD1+1); DDTS2:=REF(DDTS1,DD1+1); DDCS2:=REFX1(DDTS2,9999); 下轨:=TRENDLINES(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L); //DRAWLINE1(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1), COLORRED,LINETHICK1; POLYLINE1(CROSS(QY1,0.5),L); DRAWLINE1( CROSS(BACKSET(ISLASTBAR,SUMBARS(CROSS(QY1,0.5),3)),0.5),L,CROSS(QY1,0.5),L,1),COLORYELLOW,DOT;

 

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

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

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

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


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

相关文章

    没有相关内容