麻烦哪位老师帮我修改一下文华财经的这个公式, [博易POBO]
咨询内容:
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;
这个止盈止损在图表上不显示阿 来源 程序化久久网
麻烦哪位老师帮我修改一下文华财经的这个公式,
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;
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: 你要怎么修改这个止盈止损在图表上不显示阿 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容