请老师修改下指标谢谢 [博易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 A=1 AND PERIOD<3 AND T1>=1 ,L,4),VALIGN0;
DRAWICON(KK AND A=1 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);
RH:="DAY$1$H",NODRAW;
RL:="DAY$1$L",NODRAW;
DRAWICON(DATE<>REF(DATE,1) AND L>RH AND ( PERIOD=1 OR PERIOD=2 ),H,'ICO107'),VALIGN2;
DRAWICON(DATE<>REF(DATE,1) AND H<RL AND ( PERIOD=1 OR PERIOD=2 ),L,'ICO106'),VALIGN0;
请老师修改下指标谢谢
A:=1;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 A=1 AND PERIOD<3 AND T1>=1 ,L,4),VALIGN0;
DRAWICON(KK AND A=1 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);
RH:="DAY$1$H",NODRAW;
RL:="DAY$1$L",NODRAW;
DRAWICON(DATE<>REF(DATE,1) AND L>RH AND ( PERIOD=1 OR PERIOD=2 ),H,'ICO107'),VALIGN2;
DRAWICON(DATE<>REF(DATE,1) AND H<RL AND ( PERIOD=1 OR PERIOD=2 ),L,'ICO106'),VALIGN0;
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: 无法修改 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容