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

老师这个帮我改一下 [博易POBO]

咨询内容:

老师这个帮我改一下

分时均线:=SUM(V*AVPRICE,DAYBARPOS)/SUM(V,DAYBARPOS),PRECIS2;

MP5:=IF(TIME<=0940 AND TIME>=0900,分时均线,MA(CLOSE,100));
NN:=DAYBARPOS+1;
N2:=DAYBARPOS;
GD3:=REF(REF(REF(REF(HHV(HIGH,NN),NN),NN),NN),NN);
GD2:=REF(REF(REF(HHV(HIGH,NN),NN),NN),NN);
GD1:=REF(REF(HHV(HIGH,NN),NN),NN);
GD:=REF(HHV(HIGH,NN),NN);
DD3:=REF(REF(REF(REF(LLV(LOW,NN),NN),NN),NN),NN);
DD2:=REF(REF(REF(LLV(LOW,NN),NN),NN),NN);
DD1:=REF(REF(LLV(LOW,NN),NN),NN);
DD:=REF(LLV(LOW,NN),NN);
SPJ:=REF(CLOSE,NN);
SPJ1:=REF(SPJ,NN);
SPJ2:=REF(REF(SPJ,NN),NN);
L1:=(GD+DD+SPJ)/3;
卖出值1:=((GD-DD1)+(GD1-DD2)+(GD2-DD3))/3+DD;
卖出值2:=((GD-GD1)+(GD1-GD2)+(GD2-GD3))/3+GD;
MRZ1:=((GD1-DD)+(GD2-DD1)+(GD3-DD2))/3;
MRZ:=((DD1-DD)+(DD2-DD1)+(DD3-DD2))/3;
DT:=1;
LDT:=1181230;
买入值1:=GD-MRZ1;
买入值2:=DD-MRZ;
阻力位1:=IF(DT<=LDT,L1*2-DD,0);
阻力位2:=(卖出值1+卖出值2+GD+阻力位1)/4;
支撑位1:=IF(DT<=LDT,L1*2-GD,0);
支撑位2:=(买入值1+买入值2+DD+支撑位1)/4;
阻力大:=MAX(阻力位1,阻力位2);
阻力小:=MIN(阻力位1,阻力位2);
支撑大:=MAX(支撑位1,支撑位2);
支撑小:=MIN(支撑位1,支撑位2);
QJ1:=阻力小-支撑大;
QJ31:=QJ1*0.38;
QJ61:=QJ1*0.62;
QJ:=阻力位2-支撑位2;
QJ3:=QJ*0.38;
QJ6:=QJ*0.62;
STICKLINE1((MP5>=阻力大+QJ6 AND MP5<=阻力大+QJ+QJ3) OR (H>=阻力大+QJ6 AND H<=阻力大+QJ+QJ3),阻力大+QJ,阻力大+QJ,8,3),COLOR00FFFF,LINETHICK4;
STICKLINE1((MP5>=阻力大 AND MP5<=阻力大+QJ6) OR (H>=阻力大 AND H<=阻力大+QJ6),阻力大+QJ3,阻力大+QJ3,1,0),COLOR4080FF;
STICKLINE1((MP5>=阻力大-QJ31 AND MP5<=阻力大+QJ3) OR (H>=阻力大-QJ31 AND H<=阻力大+QJ31),阻力大,阻力大,15,10),COLORFF00FF;
STICKLINE1((MP5>=阻力小-QJ31 AND MP5<=阻力小+QJ31) OR (H>=阻力小-QJ31 AND H<=阻力小+QJ31),阻力小,阻力小,15,10),COLOR0000FF;

STICKLINE1((MP5>=支撑大 AND MP5<=阻力小-QJ31) OR (H>=支撑大 AND H<=阻力小-QJ31),阻力小-QJ61,阻力小-QJ61,1,0),COLORWHITE;
STICKLINE1((MP5<=支撑大+QJ3 AND MP5>=支撑大-QJ3) OR (L<=支撑大+QJ3 AND L>=支撑大-QJ3),支撑大,支撑大,8,5),COLOR00FF00;
STICKLINE1((MP5<=支撑小+QJ3 AND MP5>=支撑小-QJ3) OR (L<=支撑小+QJ3 AND L>=支撑小-QJ3),支撑小,支撑小,8,5),COLORRED;
STICKLINE1((MP5<=支撑小 AND MP5>=支撑小-QJ6) OR (L<=支撑小 AND L>=支撑小-QJ6),支撑小-QJ3,支撑小-QJ3,1,0),COLORRED;
STICKLINE1((MP5<=支撑小-QJ6 AND MP5>=支撑小-QJ3-QJ) OR (L<=支撑小-QJ6 AND L>=支撑小-QJ3-QJ),支撑小-QJ,支撑小-QJ,8,3),COLORFF0080;
 

 

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

博易技术人员: DAYBARPOS:=BARSLAST(REF(HOUR,1)=15 AND HOUR<>15);
分时均线:=SUM(V*SETTLEPRICE,DAYBARPOS)/SUM(V,DAYBARPOS),PRECIS2;

MP5:=IF(TIME<=0940 AND TIME>=0900,分时均线,MA(CLOSE,100));
NN:=DAYBARPOS+1;
N2:=DAYBARPOS;
GD3:=REF(REF(REF(REF(HHV(HIGH,NN),NN),NN),NN),NN);
GD2:=REF(REF(REF(HHV(HIGH,NN),NN),NN),NN);
GD1:=REF(REF(HHV(HIGH,NN),NN),NN);
GD:=REF(HHV(HIGH,NN),NN);
DD3:=REF(REF(REF(REF(LLV(LOW,NN),NN),NN),NN),NN);
DD2:=REF(REF(REF(LLV(LOW,NN),NN),NN),NN);
DD1:=REF(REF(LLV(LOW,NN),NN),NN);
DD:=REF(LLV(LOW,NN),NN);
SPJ:=REF(CLOSE,NN);
SPJ1:=REF(SPJ,NN);
SPJ2:=REF(REF(SPJ,NN),NN);
L1:=(GD+DD+SPJ)/3;
卖出值1:=((GD-DD1)+(GD1-DD2)+(GD2-DD3))/3+DD;
卖出值2:=((GD-GD1)+(GD1-GD2)+(GD2-GD3))/3+GD;
MRZ1:=((GD1-DD)+(GD2-DD1)+(GD3-DD2))/3;
MRZ:=((DD1-DD)+(DD2-DD1)+(DD3-DD2))/3;
DT:=1;
LDT:=1181230;
买入值1:=GD-MRZ1;
买入值2:=DD-MRZ;
阻力位1:=IF(DT<=LDT,L1*2-DD,0);
阻力位2:=(卖出值1+卖出值2+GD+阻力位1)/4;
支撑位1:=IF(DT<=LDT,L1*2-GD,0);
支撑位2:=(买入值1+买入值2+DD+支撑位1)/4;
阻力大:=MAX(阻力位1,阻力位2);
阻力小:=MIN(阻力位1,阻力位2);
支撑大:=MAX(支撑位1,支撑位2);
支撑小:=MIN(支撑位1,支撑位2);
QJ1:=阻力小-支撑大;
QJ31:=QJ1*0.38;
QJ61:=QJ1*0.62;
QJ:=阻力位2-支撑位2;
QJ3:=QJ*0.38;
QJ6:=QJ*0.62;
STICKLINE((MP5>=阻力大+QJ6 AND MP5<=阻力大+QJ+QJ3) OR (H>=阻力大+QJ6 AND H<=阻力大+QJ+QJ3),阻力大+QJ,阻力大+QJ,8,3),COLOR00FFFF,LINETHICK4;
STICKLINE((MP5>=阻力大 AND MP5<=阻力大+QJ6) OR (H>=阻力大 AND H<=阻力大+QJ6),阻力大+QJ3,阻力大+QJ3,1,0),COLOR4080FF;
STICKLINE((MP5>=阻力大-QJ31 AND MP5<=阻力大+QJ3) OR (H>=阻力大-QJ31 AND H<=阻力大+QJ31),阻力大,阻力大,15,10),COLORFF00FF;
STICKLINE((MP5>=阻力小-QJ31 AND MP5<=阻力小+QJ31) OR (H>=阻力小-QJ31 AND H<=阻力小+QJ31),阻力小,阻力小,15,10),COLOR0000FF;

STICKLINE((MP5>=支撑大 AND MP5<=阻力小-QJ31) OR (H>=支撑大 AND H<=阻力小-QJ31),阻力小-QJ61,阻力小-QJ61,1,0),COLORWHITE;
STICKLINE((MP5<=支撑大+QJ3 AND MP5>=支撑大-QJ3) OR (L<=支撑大+QJ3 AND L>=支撑大-QJ3),支撑大,支撑大,8,5),COLOR00FF00;
STICKLINE((MP5<=支撑小+QJ3 AND MP5>=支撑小-QJ3) OR (L<=支撑小+QJ3 AND L>=支撑小-QJ3),支撑小,支撑小,8,5),COLORRED;
STICKLINE((MP5<=支撑小 AND MP5>=支撑小-QJ6) OR (L<=支撑小 AND L>=支撑小-QJ6),支撑小-QJ3,支撑小-QJ3,1,0),COLORRED;
STICKLINE((MP5<=支撑小-QJ6 AND MP5>=支撑小-QJ3-QJ) OR (L<=支撑小-QJ6 AND L>=支撑小-QJ3-QJ),支撑小-QJ,支撑小-QJ,8,3),COLORFF0080; 来源 程序化久久网

 

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

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

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

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


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

相关文章

    没有相关内容