修改成博易能用指标 [博易POBO]
咨询内容:
INDEXH:="999300$H";
INDEXL:="999300$L";
M:=21;
N:=21;
DC:=INDEXC;
DC1:=C;
DV:=INDEXC;
VAR11:=ZIGZAG(DC1,6,1)>REF(ZIGZAG(DC1,6,1),1) AND REF(ZIGZAG(DC1,6,1),1)<=REF(ZIGZAG(DC1,6,1),2) AND REF(ZIGZAG(DC1,6,1),2)<=REF(ZIGZAG(DC1,6,1),3);
VAR12:=ZIGZAG(DC1,6,1)<REF(ZIGZAG(DC1,6,1),1) AND REF(ZIGZAG(DC1,6,1),1)>=REF(ZIGZAG(DC1,6,1),2) AND REF(ZIGZAG(DC1,6,1),2)>=REF(ZIGZAG(DC1,6,1),3);
VAR13:=ZIGZAG(DC1,22,1)>REF(ZIGZAG(DC1,22,1),1) AND REF(ZIGZAG(DC1,22,1),1)<=REF(ZIGZAG(DC1,22,1),2) AND REF(ZIGZAG(DC1,22,1),2)<=REF(ZIGZAG(DC1,22,1),3);
VAR14:=ZIGZAG(DC1,22,1)<REF(ZIGZAG(DC1,22,1),1) AND REF(ZIGZAG(DC1,22,1),1)>=REF(ZIGZAG(DC1,22,1),2) AND REF(ZIGZAG(DC1,22,1),2)>=REF(ZIGZAG(DC1,22,1),3);
VAR15:=ZIGZAG(DC1,51,1)>REF(ZIGZAG(DC1,51,1),1) AND REF(ZIGZAG(DC1,51,1),1)<=REF(ZIGZAG(DC1,51,1),2) AND REF(ZIGZAG(DC1,51,1),2)<=REF(ZIGZAG(DC1,51,1),3);
VAR16:=ZIGZAG(DC1,51,1)<REF(ZIGZAG(DC1,51,1),1) AND REF(ZIGZAG(DC1,51,1),1)>=REF(ZIGZAG(DC1,51,1),2) AND REF(ZIGZAG(DC1,51,1),2)>=REF(ZIGZAG(DC1,51,1),3);
VAR17:=ZIGZAG(DC1,72,1)>REF(ZIGZAG(DC1,72,1),1) AND REF(ZIGZAG(DC1,72,1),1)<=REF(ZIGZAG(DC1,72,1),2) AND REF(ZIGZAG(DC1,72,1),2)<=REF(ZIGZAG(DC1,72,1),3);
VAR18:=ZIGZAG(DC1,72,1)<REF(ZIGZAG(DC1,72,1),1) AND REF(ZIGZAG(DC1,72,1),1)>=REF(ZIGZAG(DC1,72,1),2) AND REF(ZIGZAG(DC1,72,1),2)>=REF(ZIGZAG(DC1,72,1),3);
买:=(VAR11+VAR13+VAR15+VAR17);
卖:=(VAR12+VAR14+VAR16+VAR18);
新价:DC,COLORWHITE;////WWW.70822.COM
DRAWTEXT(买>0,DC*0.88,'必进'),COLORRED;
DRAWTEXT(卖>0,DC*1.08,'清仓'),COLORGREEN;
B:=TROUGHBARS(DC1,5,1,1)=0;
E:=PEAKBARS(DC1,5,1,1)=0;
DRAWICON(B,INDEXL,1),COLORRED;
DRAWICON(E,INDEXH,2);
//DRAWNUMBER(E,INDEXC*0.98,TOSTRING(INDEXH,2));//画数字
//DRAWNUMBER(B,INDEXC*0.98,TOSTRING(INDEXL,2));//画数字
突破:REF(EMA(DC,14),1),COLORYELLOW;//
A1X:=(EMA(DC,10)-突破)/突破*100;
多方:=IF(A1X>=0,REF(EMA(DC,10),BARSLAST(CROSS(A1X,0))+1),NULL);
空方:=IF(A1X<0,REF(EMA(DC,10),BARSLAST(CROSS(0,A1X))+1),NULL);
STICKLINE(A1X>=0,多方,突破,0,0),COLOR000099;//柱线
STICKLINE(A1X<0,空方,突破,0,0),COLOR00CC66;//柱线
均价线:SUM(DC*DV,240)/SUM(DV,240),COLORMAGENTA;//
AA:=ZIGZAG(DC1,5,1),COLORYELLOW;
DIFF1:=-(EMA(AA,26) - EMA(AA,12));
DEA1:=-(EMA(DIFF1,9));
MACD1:=2*(DIFF1-DEA1);
//转向变盘建仓
X:=IF(MACD1<0 AND REF(MACD1,2)>REF(MACD1,1) AND MACD1>REF(MACD1,1),1,0);
DRAWTEXT(X,INDEXC*0.97,'建仓'),COLORYELLOW;
//量价指标
VPT:=SUM(DV/EMA(DV,N)*(DC-REF(DC,1))/REF(DC,1),0);
MAVPT:=EMA(VPT,M);
//均价线金叉
DRAWICON(CROSS(新价,均价线) AND 新价>突破 AND CLOSE>MA(CLOSE,144),均价线,1);
DRAWICON(CROSS(突破,均价线),均价线,1);
//底部
G:=MA(B,2),COLORYELLOW;
D:=CROSS(B,G)*(-0.5),STICK,COLORMAGENTA,LINETHICK3;//
DRAWTEXT(D<0,INDEXC*0.95,'底部'),COLORYELLOW;
买>0,SOUND('A');
卖>0,SOUND('B');
修改成博易能用指标
改成博易能用INDEXC:="999300$C";INDEXH:="999300$H";
INDEXL:="999300$L";
M:=21;
N:=21;
DC:=INDEXC;
DC1:=C;
DV:=INDEXC;
VAR11:=ZIGZAG(DC1,6,1)>REF(ZIGZAG(DC1,6,1),1) AND REF(ZIGZAG(DC1,6,1),1)<=REF(ZIGZAG(DC1,6,1),2) AND REF(ZIGZAG(DC1,6,1),2)<=REF(ZIGZAG(DC1,6,1),3);
VAR12:=ZIGZAG(DC1,6,1)<REF(ZIGZAG(DC1,6,1),1) AND REF(ZIGZAG(DC1,6,1),1)>=REF(ZIGZAG(DC1,6,1),2) AND REF(ZIGZAG(DC1,6,1),2)>=REF(ZIGZAG(DC1,6,1),3);
VAR13:=ZIGZAG(DC1,22,1)>REF(ZIGZAG(DC1,22,1),1) AND REF(ZIGZAG(DC1,22,1),1)<=REF(ZIGZAG(DC1,22,1),2) AND REF(ZIGZAG(DC1,22,1),2)<=REF(ZIGZAG(DC1,22,1),3);
VAR14:=ZIGZAG(DC1,22,1)<REF(ZIGZAG(DC1,22,1),1) AND REF(ZIGZAG(DC1,22,1),1)>=REF(ZIGZAG(DC1,22,1),2) AND REF(ZIGZAG(DC1,22,1),2)>=REF(ZIGZAG(DC1,22,1),3);
VAR15:=ZIGZAG(DC1,51,1)>REF(ZIGZAG(DC1,51,1),1) AND REF(ZIGZAG(DC1,51,1),1)<=REF(ZIGZAG(DC1,51,1),2) AND REF(ZIGZAG(DC1,51,1),2)<=REF(ZIGZAG(DC1,51,1),3);
VAR16:=ZIGZAG(DC1,51,1)<REF(ZIGZAG(DC1,51,1),1) AND REF(ZIGZAG(DC1,51,1),1)>=REF(ZIGZAG(DC1,51,1),2) AND REF(ZIGZAG(DC1,51,1),2)>=REF(ZIGZAG(DC1,51,1),3);
VAR17:=ZIGZAG(DC1,72,1)>REF(ZIGZAG(DC1,72,1),1) AND REF(ZIGZAG(DC1,72,1),1)<=REF(ZIGZAG(DC1,72,1),2) AND REF(ZIGZAG(DC1,72,1),2)<=REF(ZIGZAG(DC1,72,1),3);
VAR18:=ZIGZAG(DC1,72,1)<REF(ZIGZAG(DC1,72,1),1) AND REF(ZIGZAG(DC1,72,1),1)>=REF(ZIGZAG(DC1,72,1),2) AND REF(ZIGZAG(DC1,72,1),2)>=REF(ZIGZAG(DC1,72,1),3);
买:=(VAR11+VAR13+VAR15+VAR17);
卖:=(VAR12+VAR14+VAR16+VAR18);
新价:DC,COLORWHITE;////WWW.70822.COM
DRAWTEXT(买>0,DC*0.88,'必进'),COLORRED;
DRAWTEXT(卖>0,DC*1.08,'清仓'),COLORGREEN;
B:=TROUGHBARS(DC1,5,1,1)=0;
E:=PEAKBARS(DC1,5,1,1)=0;
DRAWICON(B,INDEXL,1),COLORRED;
DRAWICON(E,INDEXH,2);
//DRAWNUMBER(E,INDEXC*0.98,TOSTRING(INDEXH,2));//画数字
//DRAWNUMBER(B,INDEXC*0.98,TOSTRING(INDEXL,2));//画数字
突破:REF(EMA(DC,14),1),COLORYELLOW;//
A1X:=(EMA(DC,10)-突破)/突破*100;
多方:=IF(A1X>=0,REF(EMA(DC,10),BARSLAST(CROSS(A1X,0))+1),NULL);
空方:=IF(A1X<0,REF(EMA(DC,10),BARSLAST(CROSS(0,A1X))+1),NULL);
STICKLINE(A1X>=0,多方,突破,0,0),COLOR000099;//柱线
STICKLINE(A1X<0,空方,突破,0,0),COLOR00CC66;//柱线
均价线:SUM(DC*DV,240)/SUM(DV,240),COLORMAGENTA;//
AA:=ZIGZAG(DC1,5,1),COLORYELLOW;
DIFF1:=-(EMA(AA,26) - EMA(AA,12));
DEA1:=-(EMA(DIFF1,9));
MACD1:=2*(DIFF1-DEA1);
//转向变盘建仓
X:=IF(MACD1<0 AND REF(MACD1,2)>REF(MACD1,1) AND MACD1>REF(MACD1,1),1,0);
DRAWTEXT(X,INDEXC*0.97,'建仓'),COLORYELLOW;
//量价指标
VPT:=SUM(DV/EMA(DV,N)*(DC-REF(DC,1))/REF(DC,1),0);
MAVPT:=EMA(VPT,M);
//均价线金叉
DRAWICON(CROSS(新价,均价线) AND 新价>突破 AND CLOSE>MA(CLOSE,144),均价线,1);
DRAWICON(CROSS(突破,均价线),均价线,1);
//底部
G:=MA(B,2),COLORYELLOW;
D:=CROSS(B,G)*(-0.5),STICK,COLORMAGENTA,LINETHICK3;//
DRAWTEXT(D<0,INDEXC*0.95,'底部'),COLORYELLOW;
买>0,SOUND('A');
卖>0,SOUND('B');
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: 怎么没人回复呢 人家不负责改指标的,,,哎,,,真的不能用了 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容