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

这个我不会加载 [文华财经]

  • 咨询内容:  VERTLINE1(TIME=2100),DOT; VERTLINE(TIME=2100&&WEEKDAY=1,COLORRED),DOT;  P:=5;DRAWLINE1(TROUGHBARS(C,2,1,1)=0,C,PEAKBARS(C,2,1,1)=0,C,0),COLORRED,LINETHICK4;DRAWLINE1(PEAKBARS(C,2,1,1)=0,C,TROUGHBARS(C,2,1,1)=0,C,0),COLORBLUE,LINETHICK4;N1:=IF(BARSLAST(TROUGHBARS(C,2,1,1)=0)<BARSLAST(PEAKBARS(C,2,1,1)=0),SUMBARS(TROUGHBARS(C,2,1,1)=0,2),SUMBARS(PEAKBARS(C,2,1,1)=0,2));N2:BACKSET(ISLASTBAR,N1),NODRAW;DRAWSL(COUNT(N2&&TROUGHBARS(C,2,1,1)=0,10000)=1&&N2&&TROUGHBARS(C,2,1,1)=0,C,0,1,3,COLORBLUE),LINETHICK4;DRAWSL(COUNT(N2&&PEAKBARS(C,2,1,1)=0,10000)=1&&N2&&PEAKBARS(C,2,1,1)=0    ,C,0,1,3,COLORRED),LINETHICK4; P1:=121;CURRBARSCOUNT:=DATACOUNT-BARPOS;H1:=IF(H=HHV(H,P1),H,NULL);H2:=REFX1(BARSLAST(CROSS(H1>0,0.5)),10000);H3:=REFX1(IF(H2=0,L,REF(L,H2)),10000);H4:=REFX1(REF(BARSLAST(L<H3),H2+1)+H2+1,10000);H5:=REFX1(IF(H4=0,L,REF(L,H4)),10000);H6:=REFX1(REF(BARSLAST(L<H5),H4+1)+H4+1,10000);WH1:=IF(L=LLV(L,P1),L,NULL);WH2:=REFX1(BARSLAST(CROSS(WH1>0,0.5)),10000);WH3:=REFX1(IF(WH2=0,H,REF(H,WH2)),10000);WH4:=REFX1(REF(BARSLAST(H>WH3),WH2+1)+WH2+1,10000);WH5:=REFX1(IF(WH4=0,H,REF(H,WH4)),10000);WH6:=REFX1(REF(BARSLAST(H>WH5),WH4+1)+WH4+1,10000);VERTLINE(PEAKBARS(C,2,1,1)=0,COLORRED);VERTLINE(TROUGHBARS(C,2,1,1)=0,COLORCYAN);进场:IF(CURRBARSCOUNT<=WH2+21&&WH2+21>H2+21,REFX1(IF(WH6=0,H,REF(H,WH6)),10000),NULL),COLORRED,LINETHICK7;DRAWTEXT(REFX1(BARSLAST(PEAKBARS(C,2,1,1)=0)>BARSLAST(TROUGHBARS(C,2,1,1)=0),10000)&&CURRBARSCOUNT=INTPART((WH2+21)*0.618)&&WH2+21>H2+21,进场,'损',COLORYELLOW,FONTSIZE40;DRAWTEXT(REFX1(BARSLAST(PEAKBARS(C,2,1,1)=0)<BARSLAST(TROUGHBARS(C,2,1,1)=0),10000)&&CURRBARSCOUNT=INTPART((WH2+21)*0.618)&&WH2+21>H2+21,进场,'仓',COLORYELLOW,FONTSIZE40; 出场:IF(CURRBARSCOUNT<=H2+21&&WH2+21<H2+21,REFX1(IF(H4=0,L,REF(L,H4)),10000),NULL),COLORCYAN,LINETHICK7;DRAWTEXT(REFX1(BARSLAST(PEAKBARS(C,2,1,1)=0)<BARSLAST(TROUGHBARS(C,2,1,1)=0),10000)&&CURRBARSCOUNT=INTPART((H2+21)*0.618)&&WH2+21<H2+21,出场,'损',COLORYELLOW,FONTSIZE40;DRAWTEXT(REFX1(BARSLAST(PEAKBARS(C,2,1,1)=0)>BARSLAST(TROUGHBARS(C,2,1,1)=0),10000)&&CURRBARSCOUNT=INTPART((H2+21)*0.618)&&WH2+21<H2+21,出场,'仓',COLORYELLOW,FONTSIZE40; 老师请问这个DATACOUNT-BARPOS没有定义是要在哪里定义的啊

     

     来源:程序化99

  • 文华技术人员:  您的指标是可以正常检测通过并加载的,请问您具体有什么问题?

     

     来源: WWW.CXH99.COM

  • 文华客服:   来源: WWW.CXH99.COM
  • 文华客服:CURRBARSCOUNT:=DATACOUNT-BARPOS;说是没有指定

     

  • 网友回复: 我这里是可以正常加载的
     您截图发下,我们看下是什么提示?

 

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

可联系技术人员 QQ: 262069696  点击在线交流或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,谢谢您!)

怎么收费,代编流程等详情请点击阅读,或QQ微信联系我们!


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

相关文章

    没有相关内容