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

请老师帮忙修改 [博易POBO]

咨询内容:

请老师帮忙修改

//指标一
NN:=BARSLAST(DATE<>REF(DATE,1) )+1;
O1:=VALUEWHEN(DATE<>REF(DATE,1),REF(C,1));
O2:=VALUEWHEN(DATE<>REF(DATE,1),OPEN);
DRAWNUMBER(ISLASTBAR AND ( PERIOD=1 OR PERIOD=2   ),O1,O1,1,0),COLORYELLOW,ALIGN0;
DRAWNUMBER(ISLASTBAR AND ( PERIOD=1 OR PERIOD=2  ),O2,O2,1,0),COLORMAGENTA,ALIGN0;
T1:=BACKSET(ISLASTBAR,NN);
STICKLINE1(O1>0 AND ( PERIOD=1 OR PERIOD=2) AND T1>=1,O1,O1,3,0),COLORYELLOW;
STICKLINE1(O2>0 AND ( PERIOD=1 OR PERIOD=2)  AND T1>=1,O2,O2,3,0),COLORMAGENTA;

ZQ:=IF(NN<144,NN,144);
JS:=MA(C,ZQ),COLORYELLOW;
DD:=CROSS(C,JS);
KK:=CROSS(JS,C);
//DRAWICON(DD AND PERIOD<3 AND T1>=1  ,L,4),VALIGN0;
//DRAWICON(KK AND PERIOD<3 AND T1>=1,H,5),VALIGN2;

昨日结算:"DAY$1$SETTLE",NODRAW;
STICKLINE1(昨日结算>0  AND ( PERIOD=1 OR PERIOD=2  )  AND T1>=1,昨日结算,昨日结算,3,0),COLORCYAN;
DRAWNUMBER(ISLASTBAR AND ( PERIOD=1 OR PERIOD=2   ),昨日结算,昨日结算,1,0),COLORCYAN,ALIGN0;


//N1:=SUM(V,NN);
//OPI1:=SUM(OPI,NN);
//OPI2:=VALUEWHEN(DATE<>REF(DATE,1),REF(OPI,1));
//V1:=VALUEWHEN(DATE<>REF(DATE,1),REF(N1,1));
ZZ:=5;
PJL:=MA(V,NN);
FL:=V>PJL*ZZ;
DDZ:=BARSLAST(FL AND C>=O);
KKZ:=BARSLAST(FL AND C<O);
L1:=REF(L,DDZ);
H1:=REF(H,KKZ);
D1Z:=C>H1 AND COUNT(C>H1,KKZ)=1 AND KKZ<NN;
K1Z:=C<L1 AND COUNT(C<L1,DDZ)=1 AND DDZ<NN;
DRAWCOLORKLINE(D1Z AND PERIOD<=5,COLORYELLOW,0);
DRAWCOLORKLINE(K1Z AND PERIOD<=5,COLORBLUE,0);

 

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

博易技术人员: NN:=BARSLAST(DATE<>REF(DATE,1) )+1;
O1:=VALUEWHEN(DATE<>REF(DATE,1),REF(C,1));
O2:=VALUEWHEN(DATE<>REF(DATE,1),OPEN);
DRAWNUMBER(ISLASTBAR AND ( DATAPERIOD=1 OR DATAPERIOD=2   ),O1,O1,1),COLORYELLOW,ALIGN0;
DRAWNUMBER(ISLASTBAR AND ( DATAPERIOD=1 OR DATAPERIOD=2  ),O2,O2,1),COLORMAGENTA,ALIGN0;
T1:=BACKSET(ISLASTBAR,NN);
STICKLINE(O1>0 AND ( DATAPERIOD=1 OR DATAPERIOD=2) AND T1>=1,O1,O1,3,0),COLORYELLOW;
STICKLINE(O2>0 AND ( DATAPERIOD=1 OR DATAPERIOD=2)  AND T1>=1,O2,O2,3,0),COLORMAGENTA;

ZQ:=IF(NN<144,NN,144);
JS:=MA(C,ZQ),COLORYELLOW;
DD:=CROSS(C,JS);
KK:=CROSS(JS,C);
//DRAWICON(DD AND PERIOD<3 AND T1>=1  ,L,4),VALIGN0;
//DRAWICON(KK AND PERIOD<3 AND T1>=1,H,5),VALIGN2;

昨日结算: STKCALC('',6,'ref(settleprice,1)'),NODRAW;
STICKLINE(昨日结算>0  AND ( DATAPERIOD=1 OR DATAPERIOD=2  )  AND T1>=1,昨日结算,昨日结算,3,0),COLORCYAN;
DRAWNUMBER(ISLASTBAR AND ( DATAPERIOD=1 OR DATAPERIOD=2   ),昨日结算,昨日结算,1),COLORCYAN,ALIGN0;


//N1:=SUM(V,NN);
//OPI1:=SUM(OPI,NN);
//OPI2:=VALUEWHEN(DATE<>REF(DATE,1),REF(OPI,1));
//V1:=VALUEWHEN(DATE<>REF(DATE,1),REF(N1,1));
ZZ:=5;
PJL:=MA(V,NN);
FL:=V>PJL*ZZ;
DDZ:=BARSLAST(FL AND C>=O);
KKZ:=BARSLAST(FL AND C<O);
L1:=REF(L,DDZ);
H1:=REF(H,KKZ);
D1Z:=C>H1 AND COUNT(C>H1,KKZ)=1 AND KKZ<NN;
K1Z:=C<L1 AND COUNT(C<L1,DDZ)=1 AND DDZ<NN;
DRAWKLINEEX(D1Z AND DATAPERIOD<=5,H,O,L,C),COLORYELLOW;
DRAWKLINEEX(K1Z AND DATAPERIOD<=5,H,O,L,C),COLORBLUE; 谢谢老师!!
老师辛苦再修改一下,把黄色k线用实心k线表示,谢谢!!
DRAWKLINEEX(D1ZANDDATAPERIOD<=5,H,O,L,C),COLORYELLOW; 来源 程序化久久网

 

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

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

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

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


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

相关文章

    没有相关内容