您现在的位置:程序化交易>> 期货公式>> 博易大师>> 博易大师知识>>正文内容

各位老师可以帮我把文华财经的公式换成博易大师的公式吗 [博易POBO]

咨询内容:

各位老师可以帮我把文华财经的公式换成博易大师的公式吗

P:=21;
CURRBARSCOUNT:=DATACOUNT-BARPOS;
WH1:=IF(L=LLV(L,P),L,NULL),RGB(0,240,0);
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);
进场:IF(CURRBARSCOUNT<=WH2+21,REFX1(IF(WH6=0,H,REF(H,WH6)),10000),NULL),COLORRED;
IF(CURRBARSCOUNT<=WH2+1,IF(L=LLV(L,P),L,NULL),NULL),DOT,COLORRED;
DRAWTEXT(CURRBARSCOUNT=INTPART((WH2+21)*0.618),进场,'进场线'),COLORRED;
超跌进场:IF(CURRBARSCOUNT<=WH2+21,REFX1(IF(WH4=0,H,REF(H,WH4)),10000),NULL),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=INTPART((WH2+21)*0.618),超跌进场,'超跌进场线'),COLORMAGENTA;
H1:=IF(H=HHV(H,P),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);
止损:IF(CURRBARSCOUNT<=H2+21,REFX1(IF(H6=0,L,REF(L,H6)),10000),NULL),COLORYELLOW;
IF(CURRBARSCOUNT<=H2+1,IF(H=HHV(H,P),H,NULL),NULL),DOT,COLORBLUE;
DRAWTEXT(CURRBARSCOUNT=INTPART((H2+21)*0.618),止损,'止损线'),COLORYELLOW;
止盈:IF(CURRBARSCOUNT<=H2+21,REFX1(IF(H4=0,L,REF(L,H4)),10000),NULL),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=INTPART((H2+21)*0.618),止盈,'止盈线'),COLORMAGENTA;
DA:EMA(CLOSE,3),COLORBLUE;
DB:EMA(CLOSE,5) ,COLORBLUE;
DC:EMA(CLOSE,8) ,COLORBLUE;
DD:EMA(CLOSE,10) ,COLORBLUE;
DE:EMA(CLOSE,12) ,COLORBLUE;
DF:EMA(CLOSE,15) ,COLORBLUE;
CA:EMA(CLOSE,30) ,COLORYELLOW;
CB:EMA(CLOSE,35) ,COLORYELLOW;
CC:EMA(CLOSE,40) ,COLORYELLOW;
CD:EMA(CLOSE,45) ,COLORYELLOW;
CE:EMA(CLOSE,50) ,COLORYELLOW;
CF:EMA(CLOSE,60) ,COLORYELLOW;
MA21:MA(CLOSE,21),RGB(255,0,0),LINETHICK5;

 

 来源:程序化99网( WWW.CXH99.COM )

博易技术人员: P:=21;
CURRBARSCOUNT:=DATACOUNT-BARPOS;
WH1:=IF(L=LLV(L,P),L,DRAWNULL),COLOR00F000;
WH2:=REFX(BARSLAST(CROSS(WH1>0,0.5)),DATACOUNT-BARPOS-1);
WH3:=REFX(IF(WH2=0,H,REF(H,WH2)),DATACOUNT-BARPOS-1);
WH4:=REFX(REF(BARSLAST(H>WH3),WH2+1)+WH2+1,DATACOUNT-BARPOS-1);
WH5:=REFX(IF(WH4=0,H,REF(H,WH4)),DATACOUNT-BARPOS-1);
WH6:=REFX(REF(BARSLAST(H>WH5),WH4+1)+WH4+1,DATACOUNT-BARPOS-1);
进场:IF(CURRBARSCOUNT<=WH2+21,REFX(IF(WH6=0,H,REF(H,WH6)),DATACOUNT-BARPOS-1),DRAWNULL),COLORRED;
IF(CURRBARSCOUNT<=WH2+1,IF(L=LLV(L,P),L,DRAWNULL),DRAWNULL),POINTDOT,COLORRED;
DRAWTEXT(CURRBARSCOUNT=INTPART((WH2+21)*0.618),进场,'进场线'),COLORRED;
超跌进场:IF(CURRBARSCOUNT<=WH2+21,REFX(IF(WH4=0,H,REF(H,WH4)),DATACOUNT-BARPOS-1),DRAWNULL),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=INTPART((WH2+21)*0.618),超跌进场,'超跌进场线'),COLORMAGENTA;
H1:=IF(H=HHV(H,P),H,DRAWNULL);
H2:=REFX(BARSLAST(CROSS(H1>0,0.5)),DATACOUNT-BARPOS-1);
H3:=REFX(IF(H2=0,L,REF(L,H2)),DATACOUNT-BARPOS-1);
H4:=REFX(REF(BARSLAST(L<H3),H2+1)+H2+1,DATACOUNT-BARPOS-1);
H5:=REFX(IF(H4=0,L,REF(L,H4)),DATACOUNT-BARPOS-1);
H6:=REFX(REF(BARSLAST(L<H5),H4+1)+H4+1,DATACOUNT-BARPOS-1);
止损:IF(CURRBARSCOUNT<=H2+21,REFX(IF(H6=0,L,REF(L,H6)),DATACOUNT-BARPOS-1),DRAWNULL),COLORYELLOW;
IF(CURRBARSCOUNT<=H2+1,IF(H=HHV(H,P),H,DRAWNULL),DRAWNULL),POINTDOT,COLORBLUE;
DRAWTEXT(CURRBARSCOUNT=INTPART((H2+21)*0.618),止损,'止损线'),COLORYELLOW;
止盈:IF(CURRBARSCOUNT<=H2+21,REFX(IF(H4=0,L,REF(L,H4)),DATACOUNT-BARPOS-1),DRAWNULL),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=INTPART((H2+21)*0.618),止盈,'止盈线'),COLORMAGENTA;
DA:EMA(CLOSE,3),COLORBLUE;
DB:EMA(CLOSE,5) ,COLORBLUE;
DC:EMA(CLOSE,8) ,COLORBLUE;
DD:EMA(CLOSE,10) ,COLORBLUE;
DE:EMA(CLOSE,12) ,COLORBLUE;
DF:EMA(CLOSE,15) ,COLORBLUE;
CA:EMA(CLOSE,30) ,COLORYELLOW;
CB:EMA(CLOSE,35) ,COLORYELLOW;
CC:EMA(CLOSE,40) ,COLORYELLOW;
CD:EMA(CLOSE,45) ,COLORYELLOW;
CE:EMA(CLOSE,50) ,COLORYELLOW;
CF:EMA(CLOSE,60) ,COLORYELLOW;
MA21:MA(CLOSE,21),COLOR0000FF,LINETHICK5; 你好老师,感谢,其中WH1:=IF(L=LLV(L,P),L,DRAWNULL),COLOR00F000;这条公式里面的DRAWNULL系统测试显示变量没有定义,测试没有通过,帮忙修改指导一下阿,十分感谢 来源 程序化久久网

 

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

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

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

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


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

相关文章

    没有相关内容