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

麻烦老师改成博易指标,谢谢! [博易POBO]

咨询内容:

麻烦老师改成博易指标,谢谢!

ZJZ:(CLOSE+OPEN)/2,COLORRED,PRECIS2,NODRAW;
STICKLINE(V/REF(V,1)>1.5,(C+O)/2,(C+O)/2,COLORYELLOW,0);
N8:=BARSLAST(DATE<>REF(DATE,1))+1;
CC:=BACKSET(ISLASTBAR,N8);
DRAWSL1(CROSS(CC,0.5),O,0,1,1),COLORCYAN;
DRAWSL1(CROSS(CC,0.5),O,0,0,0),COLORCYAN;
QSA:EMA(CLOSE,57),COLORMAGENTA,PRECIS2,LINETHICK2;
QSB:EMA(CLOSE,27),COLORYELLOW,PRECIS2,LINETHICK2;
QSC:EMA(CLOSE,7),COLORCYAN,PRECIS2;
KG1:=VOL>REF(HHV(VOL,5),1);
W2:=OPEN-CLOSE;
HH1:=IFELSE(H<REF(H,7)&&REF(H,5)<REF(H,3),REF(H,7),0);
LL1:=IFELSE(L>REF(L,7)&&REF(L,5)>REF(L,3),REF(L,7),0);
HH2:=VALUEWHEN(HH1>0,HH1);
LL2:=VALUEWHEN(LL1>0,LL1);
KA1:=IFELSE(CLOSE>HH2,-3,IFELSE(CLOSE<LL2,1,0));
KA2:=VALUEWHEN(KA1<>0,KA1);
GA:=IFELSE(KA2=1,HH2,LL2);
GA1:=VALUEWHEN(ISLASTBAR,GA);
W1:=KA2;
U1:=(HIGH+LOW+CLOSE)/3;
HT:=IFELSE(OPEN>CLOSE,OPEN,CLOSE);
LT:=IFELSE(OPEN<CLOSE,OPEN,CLOSE);
DRAWLINE(W1=1,HIGH,W1=1,HT,COLORLIGHTGREEN);
DRAWLINE(W1=1,LOW,W1=1,LT,COLORLIGHTGREEN);
DRAWLINE(W1=-3,HIGH,W1=-3,HT,COLORRED);
DRAWLINE(W1=-3,LOW,W1=-3,LT,COLORRED);
STICKLINE(W1>0,OPEN,CLOSE,COLORLIGHTGREEN,1);
STICKLINE(W1<=0,OPEN,CLOSE,COLORRED,1);
P1:=EMA(U1,5)+(REF(EMA(CLOSE,5),2)-REF(EMA(CLOSE,5),4));
P:=(P1+EMA(CLOSE,5))/2;
A1:=REF(HIGH,2)>REF(HIGH,1)||REF(LOW,2)>REF(LOW,1);
A3:=HIGH>REF(HIGH,1)|| HIGH>REF(HIGH,2)||(HIGH-LOW)*0.3+LOW>P;
A31:=CLOSE>P&&REF(LOW,1)<P&&CLOSE>REF((HIGH+LOW)/2,1);
A4:=REF(EMA(CLOSE,5),2)>REF(EMA(CLOSE,5),1);
A5:=VALUEWHEN(A1&&A3&&A4&&A31,REF((HIGH+LOW)/2 ,1));
RSV:=(CLOSE-LLV(LOW,12))/(HHV(HIGH,12)-LLV(LOW,12))*100;
M:=SMA(RSV,5,1);
A:=EMA(M,5);
B:=EMA(A,5);
A6:=REF(LOW,2)<REF(LOW,1)||REF(HIGH,2)<REF(HIGH,1);
A7:=LOW<REF(LOW,1)|| LOW<REF(LOW,2)||(HIGH-LOW)*0.7+LOW<P;
A71:=CLOSE<P&&REF(HIGH,1)>P&&CLOSE<REF((HIGH+LOW)/2,1);
A8:=REF(EMA(CLOSE,5),2)<REF(EMA(CLOSE,5),1);
A9:=VALUEWHEN(A6&&A7&&A8&&A71,REF((HIGH+LOW)/2 ,1));
D:= VALUEWHEN(KG1, (HIGH+LOW)/2);
DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26);//短周期与长周期的收盘价的指数平滑移动平均值做差。
DEA:= EMA(DIFF,9);//DIFF的M个周期指数平滑移动平均
MACD:=2*(DIFF-DEA),COLORSTICK;//DIFF减DEA的2倍画柱状线
STICKLINE(W2>0&&W1<=0,OPEN,CLOSE,COLORRED,0);
STICKLINE(W2>0&&W1>0,OPEN,CLOSE,COLORLIGHTGREEN,0);

 

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

博易技术人员: 老师看一下,怎么是这样的,麻烦给修正一下。谢谢
2.JPG
  ZJZ:(CLOSE+OPEN)/2,COLORRED,PRECIS2,NODRAW;
STICKLINE(V/REF(V,1)>1.5,(C+O)/2,(C+O)/2,10,0),COLORYELLOW;
N8:=BARSLAST(DATE<>REF(DATE,1))+1;
CC:=BACKSET(ISLASTBAR,N8);
DRAWSL(CROSS(CC,0.5),O,0,1,1),COLORCYAN;
DRAWSL(CROSS(CC,0.5),O,0,0,0),COLORCYAN;
QSA:EMA(CLOSE,57),COLORMAGENTA,PRECIS2,LINETHICK2;
QSB:EMA(CLOSE,27),COLORYELLOW,PRECIS2,LINETHICK2;
QSC:EMA(CLOSE,7),COLORCYAN,PRECIS2;
KG1:=VOL>REF(HHV(VOL,5),1);
W2:=OPEN-CLOSE;
HH1:=IFELSE(H<REF(H,7)&&REF(H,5)<REF(H,3),REF(H,7),0);
LL1:=IFELSE(L>REF(L,7)&&REF(L,5)>REF(L,3),REF(L,7),0);
HH2:=VALUEWHEN(HH1>0,HH1);
LL2:=VALUEWHEN(LL1>0,LL1);
KA1:=IFELSE(CLOSE>HH2,-3,IFELSE(CLOSE<LL2,1,0));
KA2:=VALUEWHEN(KA1<>0,KA1);
GA:=IFELSE(KA2=1,HH2,LL2);
GA1:=VALUEWHEN(ISLASTBAR,GA);
W1:=KA2; 
U1:=(HIGH+LOW+CLOSE)/3;
HT:=IFELSE(OPEN>CLOSE,OPEN,CLOSE);
LT:=IFELSE(OPEN<CLOSE,OPEN,CLOSE);
DRAWLINE(W1=1,HIGH,W1=1,HT),COLORGREEN;
DRAWLINE(W1=1,LOW,W1=1,LT),COLORGREEN;
DRAWLINE(W1=-3,HIGH,W1=-3,HT),COLORRED;
DRAWLINE(W1=-3,LOW,W1=-3,LT),COLORRED;
STICKLINE(W1>0,OPEN,CLOSE,10,1),COLORGREEN;
STICKLINE(W1<=0,OPEN,CLOSE,10,1),COLORRED;
P1:=EMA(U1,5)+(REF(EMA(CLOSE,5),2)-REF(EMA(CLOSE,5),4));
P:=(P1+EMA(CLOSE,5))/2;
A1:=REF(HIGH,2)>REF(HIGH,1)||REF(LOW,2)>REF(LOW,1);
A3:=HIGH>REF(HIGH,1)||HIGH>REF(HIGH,2)||(HIGH-LOW)*0.3+LOW>P;
A31:=CLOSE>P&&REF(LOW,1)<P&&CLOSE>REF((HIGH+LOW)/2,1);
A4:=REF(EMA(CLOSE,5),2)>REF(EMA(CLOSE,5),1);
A5:=VALUEWHEN(A1&&A3&&A4&&A31,REF((HIGH+LOW)/2,1));
RSV:=(CLOSE-LLV(LOW,12))/(HHV(HIGH,12)-LLV(LOW,12))*100;
M:=SMA(RSV,5,1);
A:=EMA(M,5);
B:=EMA(A,5);
A6:=REF(LOW,2)<REF(LOW,1)||REF(HIGH,2)<REF(HIGH,1);
A7:=LOW<REF(LOW,1)||LOW<REF(LOW,2)||(HIGH-LOW)*0.7+LOW<P;
A71:=CLOSE<P&&REF(HIGH,1)>P&&CLOSE<REF((HIGH+LOW)/2,1);
A8:=REF(EMA(CLOSE,5),2)<REF(EMA(CLOSE,5),1);
A9:=VALUEWHEN(A6&&A7&&A8&&A71,REF((HIGH+LOW)/2,1));
D:=VALUEWHEN(KG1,(HIGH+LOW)/2);
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);//短周期与长周期的收盘价的指数平滑移动平均值做差。
DEA:=EMA(DIFF,9);//DIFF的M个周期指数平滑移动平均
MACD:=2*(DIFF-DEA),COLORSTICK;//DIFF减DEA的2倍画柱状线
STICKLINE(W2>0&&W1<=0,OPEN,CLOSE,10,0),COLORRED;
STICKLINE(W2>0&&W1>0,OPEN,CLOSE,10,0),COLORGREEN; 来源 程序化久久网

 

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

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

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

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


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

相关文章

    没有相关内容