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

请老师改指标 [博易POBO]

咨询内容:

请老师改指标

N:=8;
AA:=REF(H,N)=HHV(H,2*N+1);
AA1:=REF(L,N)=LLV(L,2*N+1);
QY:=BACKSET(AA,N+1);
QY1:=BACKSET(AA1,N+1);
CC:=FILTER(QY,N) AND H=HHV(H,N+1);
CC1:=FILTER(QY1,N) AND L=LLV(L,N+1);
DDD:=BARSLAST(CC);
DD1:=BARSLAST(CC1);
CURRBARSCOUNT:=DATACOUNT-BARPOS+1;
GDTS:=IF(CC,CURRBARSCOUNT,0);
DDTS:=IF(CC1,CURRBARSCOUNT,0);
DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);
DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);
GDCS1:=REFX1(DINGBUTS,10000);
DDCS1:=REFX1(DDTS1,10000);
GDCS13:=REFX1(REF(HIGH,GDCS1-1),10000);
DDCS13:=REFX1(REF(L,DDCS1-1),10000);
DINGBUTS1:=REF(DINGBUTS,DDD+1);
DDTS2:=REF(DDTS1,DD1+1);
GDCS2:=REFX1(DINGBUTS1,10000);
DDCS2:=REFX1(DDTS2,10000);
GDCS23:=REFX1(REF(HIGH,DINGBUTS1-1),10000);
DDCS23:=REFX1(REF(L,DDTS2-1),10000);
XG1:=BACKSET(ISLASTBAR,GDCS1);
XD1:=BACKSET(ISLASTBAR,DDCS1);
XG2:=BACKSET(ISLASTBAR,DINGBUTS1);
XD2:=BACKSET(ISLASTBAR,DDTS2);

STICKLINE1(XG2,GDCS23,GDCS23+0.3,2,0),COLORCYAN;
STICKLINE1(XG1,GDCS13,GDCS13+0.3,2,0),COLORGREEN;
STICKLINE1(XD2,DDCS23,DDCS23+0.3,2,0),COLORRED;
STICKLINE1(XD1,DDCS13,DDCS13+0.3,2,0),RGB(255,128,192);

 

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

博易技术人员: N:=8;
AA:=REF(H,N)=HHV(H,2*N+1);
AA1:=REF(L,N)=LLV(L,2*N+1);
QY:=BACKSET(AA,N+1);
QY1:=BACKSET(AA1,N+1);
CC:=FILTER(QY,N) AND H=HHV(H,N+1);
CC1:=FILTER(QY1,N) AND L=LLV(L,N+1);
DDD:=BARSLAST(CC);
DD1:=BARSLAST(CC1);
CURRBARSCOUNT:=DATACOUNT-BARPOS+1;
GDTS:=IF(CC,CURRBARSCOUNT,0);
DDTS:=IF(CC1,CURRBARSCOUNT,0);
DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);
DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);
GDCS1:=REFX(DINGBUTS,DATACOUNT-BARPOS-1);
DDCS1:=REFX(DDTS1,DATACOUNT-BARPOS-1);
GDCS13:=REFX(REF(HIGH,GDCS1-1),DATACOUNT-BARPOS-1);
DDCS13:=REFX(REF(L,DDCS1-1),DATACOUNT-BARPOS-1);
DINGBUTS1:=REF(DINGBUTS,DDD+1);
DDTS2:=REF(DDTS1,DD1+1);
GDCS2:=REFX(DINGBUTS1,DATACOUNT-BARPOS-1);
DDCS2:=REFX(DDTS2,DATACOUNT-BARPOS-1);
GDCS23:=REFX(REF(HIGH,DINGBUTS1-1),DATACOUNT-BARPOS-1);
DDCS23:=REFX(REF(L,DDTS2-1),DATACOUNT-BARPOS-1);
XG1:=BACKSET(ISLASTBAR,GDCS1);
XD1:=BACKSET(ISLASTBAR,DDCS1);
XG2:=BACKSET(ISLASTBAR,DINGBUTS1);
XD2:=BACKSET(ISLASTBAR,DDTS2);

STICKLINE(XG2,GDCS23,GDCS23+0.3,8,0),COLORCYAN;
STICKLINE(XG1,GDCS13,GDCS13+0.3,8,0),COLORGREEN;
STICKLINE(XD2,DDCS23,DDCS23+0.3,8,0),COLORRED;
STICKLINE(XD1,DDCS13,DDCS13+0.3,8,0),COLORC080FF; 来源 程序化久久网

 

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

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

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

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


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

相关文章

    没有相关内容