请帮我把文华指标改为博易指标 [博易POBO]
咨询内容:
NX:=(3*CLOSE+LOW+OPEN+HIGH)/6;
P:=21;
CURRBARSCOUNT:=DATACOUNT-BARPOS;
WH1:=IF(L=LLV(L,P),L,NULL);
WH2:=REFX1(BARSLAST(ISNULL(WH1)=0),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;
//DRAWTEXT(CURRBARSCOUNT=INTPART((WH2+21)*0.618),买,'B'),COLORRED;
H1:=IF(H=HHV(H,P),H,NULL);
H2:=REFX1(BARSLAST(ISNULL(H1)=0),10000),NODRAW;
H3:=REFX1(IF(H2=0,L,REF(L,H2)),10000);
H4:=REFX1(REF(BARSLAST(L<H3),H2+1)+H2+1,10000),NODRAW;
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),COLORGREEN;
//DRAWTEXT(CURRBARSCOUNT=INTPART((H2+21)*0.618),卖,'S'),COLORGREEN;
LL:CROSS(BACKSET(ISLASTBAR,BARSLAST (L=LLV(L,P))+1),0.5),NODRAW;
HH:CROSS(BACKSET(ISLASTBAR,BARSLAST (H=HHV(H,P))+1),0.5),NODRAW;
DRAWICON(LL,L,'ICO12'),VALIGN0;
DRAWICON(HH,H,'ICO12');
NX:=(3*CLOSE+LOW+OPEN+HIGH)/6;
P:=21;
CURRBARSCOUNT:=DATACOUNT-BARPOS;
WH1:=IF(L=LLV(L,P),L,DRAWNULL);
WH2:=REFX(BARSLAST(NOT(WH1)=0),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;
//DRAWTEXT(CURRBARSCOUNT=INTPART((WH2+21)*0.618),买,'B'),COLORRED;
H1:=IF(H=HHV(H,P),H,DRAWNULL);
H2:=REFX(BARSLAST(NOT(H1)=0),DATACOUNT-BARPOS-1),NODRAW;
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),NODRAW;
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),COLORGREEN;
//DRAWTEXT(CURRBARSCOUNT=INTPART((H2+21)*0.618),卖,'S'),COLORGREEN;
LL:CROSS(BACKSET(ISLASTBAR,BARSLAST (L=LLV(L,P))+1),0.5),NODRAW;
HH:CROSS(BACKSET(ISLASTBAR,BARSLAST (H=HHV(H,P))+1),0.5),NODRAW;
DRAWICON(LL,L,1),VALIGN0;
DRAWICON(HH,H,2); 谢谢,成功了,但主图上的均线指标在上面,请问怎么去除。 来源 程序化久久网
请帮我把文华指标改为博易指标
重:(H+L+O+C*3)/6,CIRCLEDOT,COLORWHITE;NX:=(3*CLOSE+LOW+OPEN+HIGH)/6;
P:=21;
CURRBARSCOUNT:=DATACOUNT-BARPOS;
WH1:=IF(L=LLV(L,P),L,NULL);
WH2:=REFX1(BARSLAST(ISNULL(WH1)=0),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;
//DRAWTEXT(CURRBARSCOUNT=INTPART((WH2+21)*0.618),买,'B'),COLORRED;
H1:=IF(H=HHV(H,P),H,NULL);
H2:=REFX1(BARSLAST(ISNULL(H1)=0),10000),NODRAW;
H3:=REFX1(IF(H2=0,L,REF(L,H2)),10000);
H4:=REFX1(REF(BARSLAST(L<H3),H2+1)+H2+1,10000),NODRAW;
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),COLORGREEN;
//DRAWTEXT(CURRBARSCOUNT=INTPART((H2+21)*0.618),卖,'S'),COLORGREEN;
LL:CROSS(BACKSET(ISLASTBAR,BARSLAST (L=LLV(L,P))+1),0.5),NODRAW;
HH:CROSS(BACKSET(ISLASTBAR,BARSLAST (H=HHV(H,P))+1),0.5),NODRAW;
DRAWICON(LL,L,'ICO12'),VALIGN0;
DRAWICON(HH,H,'ICO12');
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: 重:(H+L+O+C*3)/6,CIRCLEDOT,COLORWHITE;NX:=(3*CLOSE+LOW+OPEN+HIGH)/6;
P:=21;
CURRBARSCOUNT:=DATACOUNT-BARPOS;
WH1:=IF(L=LLV(L,P),L,DRAWNULL);
WH2:=REFX(BARSLAST(NOT(WH1)=0),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;
//DRAWTEXT(CURRBARSCOUNT=INTPART((WH2+21)*0.618),买,'B'),COLORRED;
H1:=IF(H=HHV(H,P),H,DRAWNULL);
H2:=REFX(BARSLAST(NOT(H1)=0),DATACOUNT-BARPOS-1),NODRAW;
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),NODRAW;
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),COLORGREEN;
//DRAWTEXT(CURRBARSCOUNT=INTPART((H2+21)*0.618),卖,'S'),COLORGREEN;
LL:CROSS(BACKSET(ISLASTBAR,BARSLAST (L=LLV(L,P))+1),0.5),NODRAW;
HH:CROSS(BACKSET(ISLASTBAR,BARSLAST (H=HHV(H,P))+1),0.5),NODRAW;
DRAWICON(LL,L,1),VALIGN0;
DRAWICON(HH,H,2); 谢谢,成功了,但主图上的均线指标在上面,请问怎么去除。 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容