老师帮我修改一下这个指标 [博易POBO]
咨询内容:
WH1:=IF(L=LLV(L,P),L,DRAWNULL);
WH2:=CONST(BARSLAST(WH1!=DRAWNULL));
WH3:=CONST(IF(WH2=0,H,REF(H,WH2)));
WH4:=CONST(REF(BARSLAST(H>WH3),WH2+1)+WH2+1);
WH5:=CONST(IF(WH4=0,H,REF(H,WH4)));
WH6:=CONST(REF(BARSLAST(H>WH5),WH4+1)+WH4+1);
进场:IF(CURRBARSCOUNT<=WH2+21,CONST(IF(WH6=0,H,REF(H,WH6))),DRAWNULL),COLORRED;
IF(CURRBARSCOUNT<=WH2+1,IF(L=LLV(L,P),L,DRAWNULL),DRAWNULL),CIRCLEDOT,COLORRED;
DRAWTEXT(CURRBARSCOUNT=INTPART((WH2+21)*0.618),进场,'进场线'),COLORRED;
超跌进场:IF(CURRBARSCOUNT<=WH2+21,CONST(IF(WH4=0,H,REF(H,WH4))),DRAWNULL),COLORCB21BE;
DRAWTEXT(CURRBARSCOUNT=INTPART((WH2+21)*0.618),超跌进场,'超跌进场线'),COLORCB21BE;
H1:=IF(H=HHV(H,P),H,DRAWNULL);
H2:=CONST(BARSLAST(H1!=DRAWNULL));
H3:=CONST(IF(H2=0,L,REF(L,H2)));
H4:=CONST(REF(BARSLAST(L<H3),H2+1)+H2+1);
H5:=CONST(IF(H4=0,L,REF(L,H4)));
H6:=CONST(REF(BARSLAST(L<H5),H4+1)+H4+1);
止损:IF(CURRBARSCOUNT<=H2+21,CONST(IF(H6=0,L,REF(L,H6))),DRAWNULL),COLORYELLOW;
IF(CURRBARSCOUNT<=H2+1,IF(H=HHV(H,P),H,DRAWNULL),DRAWNULL),CIRCLEDOT,COLORBLUE;
DRAWTEXT(CURRBARSCOUNT=INTPART((H2+21)*0.618),止损,'止损线'),COLORYELLOW;
止盈:IF(CURRBARSCOUNT<=H2+21,CONST(IF(H4=0,L,REF(L,H4))),DRAWNULL),COLORCB21BE;
DRAWTEXT(CURRBARSCOUNT=INTPART((H2+21)*0.618),止盈,'止盈线'),COLORCB21BE;DRAWTEXT_FIX(C>O,0.01,0.9,0,'WWW.CXH99.COM'),COLORRED;
DRAWTEXT_FIX(C>O,1,1,0,'<SPAN STYLE="DISPLAY:NONE;"><A DATA-CKE-SAVED-HREF="WWW.CXH99.COM"" rel="nofollow" target="_blank">HTTP://WWW.CXH99.COM" HREF="WWW.CXH99.COM">" rel="nofollow" target="_blank">HTTP://WWW.CXH99.COM">程序化交易模型</A></SPAN>'),COLORRED;
WH1:=IF(L=LLV(L,P),L,DRAWNULL);
WH2:=BARSLAST(WH1!=DRAWNULL);
WH3:=IF(WH2=0,H,REF(H,WH2));
WH4:=REF(BARSLAST(H>WH3),WH2+1)+WH2+1;
WH5:=IF(WH4=0,H,REF(H,WH4));
WH6:=REF(BARSLAST(H>WH5),WH4+1)+WH4+1;
进场:IF(DATACOUNT-BARPOS<=WH2+21,IF(WH6=0,H,REF(H,WH6)),DRAWNULL),COLORRED;
IF(DATACOUNT-BARPOS<=WH2+1,IF(L=LLV(L,P),L,DRAWNULL),DRAWNULL),CIRCLEDOT,COLORRED;
DRAWTEXT(DATACOUNT-BARPOS=INTPART((WH2+21)*0.618),进场,'进场线'),COLORRED;
超跌进场:IF(DATACOUNT-BARPOS<=WH2+21,IF(WH4=0,H,REF(H,WH4)),DRAWNULL),COLORCB21BE;
DRAWTEXT(DATACOUNT-BARPOS=INTPART((WH2+21)*0.618),超跌进场,'超跌进场线'),COLORCB21BE;
H1:=IF(H=HHV(H,P),H,DRAWNULL);
H2:=BARSLAST(H1!=DRAWNULL);
H3:=IF(H2=0,L,REF(L,H2));
H4:=REF(BARSLAST(L<H3),H2+1)+H2+1;
H5:=IF(H4=0,L,REF(L,H4));
H6:=REF(BARSLAST(L<H5),H4+1)+H4+1;
止损:IF(DATACOUNT-BARPOS<=H2+21,IF(H6=0,L,REF(L,H6)),DRAWNULL),COLORYELLOW;
IF(DATACOUNT-BARPOS<=H2+1,IF(H=HHV(H,P),H,DRAWNULL),DRAWNULL),CIRCLEDOT,COLORBLUE;
DRAWTEXT(DATACOUNT-BARPOS=INTPART((H2+21)*0.618),止损,'止损线'),COLORYELLOW;
止盈:IF(DATACOUNT-BARPOS<=H2+21,IF(H4=0,L,REF(L,H4)),DRAWNULL),COLORCB21BE;
DRAWTEXT(DATACOUNT-BARPOS=INTPART((H2+21)*0.618),止盈,'止盈线'),COLORCB21BE; 谢谢 辛苦你了 来源 程序化久久网
老师帮我修改一下这个指标
P:=21;WH1:=IF(L=LLV(L,P),L,DRAWNULL);
WH2:=CONST(BARSLAST(WH1!=DRAWNULL));
WH3:=CONST(IF(WH2=0,H,REF(H,WH2)));
WH4:=CONST(REF(BARSLAST(H>WH3),WH2+1)+WH2+1);
WH5:=CONST(IF(WH4=0,H,REF(H,WH4)));
WH6:=CONST(REF(BARSLAST(H>WH5),WH4+1)+WH4+1);
进场:IF(CURRBARSCOUNT<=WH2+21,CONST(IF(WH6=0,H,REF(H,WH6))),DRAWNULL),COLORRED;
IF(CURRBARSCOUNT<=WH2+1,IF(L=LLV(L,P),L,DRAWNULL),DRAWNULL),CIRCLEDOT,COLORRED;
DRAWTEXT(CURRBARSCOUNT=INTPART((WH2+21)*0.618),进场,'进场线'),COLORRED;
超跌进场:IF(CURRBARSCOUNT<=WH2+21,CONST(IF(WH4=0,H,REF(H,WH4))),DRAWNULL),COLORCB21BE;
DRAWTEXT(CURRBARSCOUNT=INTPART((WH2+21)*0.618),超跌进场,'超跌进场线'),COLORCB21BE;
H1:=IF(H=HHV(H,P),H,DRAWNULL);
H2:=CONST(BARSLAST(H1!=DRAWNULL));
H3:=CONST(IF(H2=0,L,REF(L,H2)));
H4:=CONST(REF(BARSLAST(L<H3),H2+1)+H2+1);
H5:=CONST(IF(H4=0,L,REF(L,H4)));
H6:=CONST(REF(BARSLAST(L<H5),H4+1)+H4+1);
止损:IF(CURRBARSCOUNT<=H2+21,CONST(IF(H6=0,L,REF(L,H6))),DRAWNULL),COLORYELLOW;
IF(CURRBARSCOUNT<=H2+1,IF(H=HHV(H,P),H,DRAWNULL),DRAWNULL),CIRCLEDOT,COLORBLUE;
DRAWTEXT(CURRBARSCOUNT=INTPART((H2+21)*0.618),止损,'止损线'),COLORYELLOW;
止盈:IF(CURRBARSCOUNT<=H2+21,CONST(IF(H4=0,L,REF(L,H4))),DRAWNULL),COLORCB21BE;
DRAWTEXT(CURRBARSCOUNT=INTPART((H2+21)*0.618),止盈,'止盈线'),COLORCB21BE;DRAWTEXT_FIX(C>O,0.01,0.9,0,'WWW.CXH99.COM'),COLORRED;
DRAWTEXT_FIX(C>O,1,1,0,'<SPAN STYLE="DISPLAY:NONE;"><A DATA-CKE-SAVED-HREF="WWW.CXH99.COM"" rel="nofollow" target="_blank">HTTP://WWW.CXH99.COM" HREF="WWW.CXH99.COM">" rel="nofollow" target="_blank">HTTP://WWW.CXH99.COM">程序化交易模型</A></SPAN>'),COLORRED;
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: P:=21;WH1:=IF(L=LLV(L,P),L,DRAWNULL);
WH2:=BARSLAST(WH1!=DRAWNULL);
WH3:=IF(WH2=0,H,REF(H,WH2));
WH4:=REF(BARSLAST(H>WH3),WH2+1)+WH2+1;
WH5:=IF(WH4=0,H,REF(H,WH4));
WH6:=REF(BARSLAST(H>WH5),WH4+1)+WH4+1;
进场:IF(DATACOUNT-BARPOS<=WH2+21,IF(WH6=0,H,REF(H,WH6)),DRAWNULL),COLORRED;
IF(DATACOUNT-BARPOS<=WH2+1,IF(L=LLV(L,P),L,DRAWNULL),DRAWNULL),CIRCLEDOT,COLORRED;
DRAWTEXT(DATACOUNT-BARPOS=INTPART((WH2+21)*0.618),进场,'进场线'),COLORRED;
超跌进场:IF(DATACOUNT-BARPOS<=WH2+21,IF(WH4=0,H,REF(H,WH4)),DRAWNULL),COLORCB21BE;
DRAWTEXT(DATACOUNT-BARPOS=INTPART((WH2+21)*0.618),超跌进场,'超跌进场线'),COLORCB21BE;
H1:=IF(H=HHV(H,P),H,DRAWNULL);
H2:=BARSLAST(H1!=DRAWNULL);
H3:=IF(H2=0,L,REF(L,H2));
H4:=REF(BARSLAST(L<H3),H2+1)+H2+1;
H5:=IF(H4=0,L,REF(L,H4));
H6:=REF(BARSLAST(L<H5),H4+1)+H4+1;
止损:IF(DATACOUNT-BARPOS<=H2+21,IF(H6=0,L,REF(L,H6)),DRAWNULL),COLORYELLOW;
IF(DATACOUNT-BARPOS<=H2+1,IF(H=HHV(H,P),H,DRAWNULL),DRAWNULL),CIRCLEDOT,COLORBLUE;
DRAWTEXT(DATACOUNT-BARPOS=INTPART((H2+21)*0.618),止损,'止损线'),COLORYELLOW;
止盈:IF(DATACOUNT-BARPOS<=H2+21,IF(H4=0,L,REF(L,H4)),DRAWNULL),COLORCB21BE;
DRAWTEXT(DATACOUNT-BARPOS=INTPART((H2+21)*0.618),止盈,'止盈线'),COLORCB21BE; 谢谢 辛苦你了 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容