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

老师请帮忙转化成博弈大师谢谢 [博易POBO]

咨询内容:

老师请帮忙转化成博弈大师谢谢

指标一:
PARTLINE(CLOSE>0,MA(CLOSE,5),COLORWHITE);
PARTLINE(CLOSE>0,MA(CLOSE,6),COLORWHITE);
PARTLINE(CLOSE>0,MA(CLOSE,7),COLORWHITE);
PARTLINE(CLOSE>0,MA(CLOSE,8),COLORWHITE);
PARTLINE(CLOSE>0,MA(CLOSE,9),COLORWHITE);
PARTLINE(CLOSE>0,MA(CLOSE,10),COLORWHITE);
PARTLINE(CLOSE>0,MA(CLOSE,25),COLORRED);
PARTLINE(CLOSE>0,MA(CLOSE,26),COLORRED);
PARTLINE(CLOSE>0,MA(CLOSE,27),COLORRED);
PARTLINE(CLOSE>0,MA(CLOSE,28),COLORRED);
PARTLINE(CLOSE>0,MA(CLOSE,29),COLORRED);
PARTLINE(CLOSE>0,MA(CLOSE,30),COLORRED);
DRAWTEXT(CROSS(MIN1(MA(CLOSE,5),MA(CLOSE,6),MA(CLOSE,7),MA(CLOSE,8),MA(CLOSE,9),MA(CLOSE,10)),MIN1(MA(CLOSE,25),MA(CLOSE,26),MA(CLOSE,27),MA(CLOSE,28),MA(CLOSE,29),MA(CLOSE,30))),MIN1(MA(CLOSE,5),MA(CLOSE,6),MA(CLOSE,7),MA(CLOSE,8),MA(CLOSE,9),MA(CLOSE,10)),'买'),VALIGN0,COLORRED,FONTSIZE20;
DRAWTEXT(CROSSDOWN(MAX1(MA(CLOSE,5),MA(CLOSE,6),MA(CLOSE,7),MA(CLOSE,8),MA(CLOSE,9),MA(CLOSE,10)),MAX1(MA(CLOSE,25),MA(CLOSE,26),MA(CLOSE,27),MA(CLOSE,28),MA(CLOSE,29),MA(CLOSE,30))),MAX1(MA(CLOSE,5),MA(CLOSE,6),MA(CLOSE,7),MA(CLOSE,8),MA(CLOSE,9),MA(CLOSE,10)),'卖'),COLORGREEN,FONTSIZE20;
CROSS(MIN1(MA(CLOSE,5),MA(CLOSE,6),MA(CLOSE,7),MA(CLOSE,8),MA(CLOSE,9),MA(CLOSE,10)),MIN1(MA(CLOSE,25),MA(CLOSE,26),MA(CLOSE,27),MA(CLOSE,28),MA(CLOSE,29),MA(CLOSE,30)))||CROSSDOWN(MAX1(MA(CLOSE,5),MA(CLOSE,6),MA(CLOSE,7),MA(CLOSE,8),MA(CLOSE,9),MA(CLOSE,10)),MAX1(MA(CLOSE,25),MA(CLOSE,26),MA(CLOSE,27),MA(CLOSE,28),MA(CLOSE,29),MA(CLOSE,30))),SOUND('A');
 
指标二:
G:=MA(C,5);
D:=MA(C,10);
NNH:=BARSLAST(H=HHV(H,7)) ,NODRAW;
NNL:=BARSLAST(L=LLV(L,7)) ,NODRAW;
//PD:=REF(G,NNH)>REF(D,NNH) ,NODRAW;
NN:=IF(REF(G,NNH)>REF(D,NNH) AND NNH<=4,NNH,IF(REF(G,NNL)<REF(D,NNL) AND NNL<=4,NNL,5)) ,NODRAW;
N:=IF(ISLASTBAR AND NN>0,NN,5) ,NODRAW;
HH:=REF(H,N)=HHV(H,6);
LL:=REF(L,N)=LLV(L,6);
FG01:=BACKSET(HH,N+1)>BACKSET(HH,N),NODRAW;//只设置前面第6个
FD01:=BACKSET(LL,N+1)>BACKSET(LL,N) ,NODRAW;
FG02:=FG01=FD01 AND G>D,NODRAW;
FD02:=FG01=FD01 AND G<D,NODRAW;
TTTT:=BARSLAST(FD01),NODRAW;
FG0:=FG01 AND IF(FG02=1,H=HHV(H,BARSLAST(REF(FD01,1))+1),H=HHV(H,IF(BARSLAST(L=LLV(L,7))>=5,5,BARSLAST(FD01)))) AND FD02=0 ,NODRAW;
FD0:=FD01 AND IF(FD02=1,L=LLV(L,BARSLAST(REF(FG01,1))+1),L=LLV(L,IF(BARSLAST(H=HHV(L,7))>=5,5,BARSLAST(FG01))))  AND FG02=0 ,NODRAW;
GT:=BARSLAST(FG0),NODRAW;
DT:=BARSLAST(FD0),NODRAW;
LLLL:=DT=0 AND REF(DT,1)<GT AND L>REF(L,REF(DT,1)+1),NODRAW;
FG1:=BACKSET(REFX(GT,1)=0 AND GT<DT AND REFX(H,1)>=REF(H,GT),GT+1),NODRAW;
FD1:=BACKSET(REFX(DT,1)=0 AND DT<GT AND REFX(L,1)<=REF(L,DT),DT+1),NODRAW;
FG11:=IF(GT=0 AND REF(GT,1)<DT AND IF(REF(G,BARSLAST(L=LLV(L,7)))>REF(D,BARSLAST(L=LLV(L,7))),BARSLAST(L=LLV(L,7))<5,1) AND  H<REF(H,REF(GT,1)+1),1,0),NODRAW;
FD11:=IF(DT=0 AND REF(DT,1)<GT AND IF(REF(G,BARSLAST(H=HHV(H,7)))<REF(D,BARSLAST(H=HHV(H,7))),BARSLAST(H=HHV(H,7))<5,1) AND L>REF(L,REF(DT,1)+1),1,0),NODRAW;
//再次周期
GT1:=BARSLAST(FG11<>1 AND FG1<>1 AND FG0),NODRAW;
DT1:=BARSLAST(FD11<>1 AND FD1<>1 AND FD0),NODRAW;
FD2:=BACKSET(REFX(GT1,1)=0 AND DT1<3 AND GT1-DT1<4 AND REF(L,DT1)>LLV(L,GT1+5),DT1+1),NODRAW;
FG2A:=BACKSET(REFX(GT1,1)=0 AND DT1<3 AND GT1-DT1<4 AND REF(L,DT1)<=LLV(L,GT1+5) AND REF(H,GT1)>HHV(H,GT1+5),GT1+1),NODRAW;
FG2B:=IF(GT1=0 AND DT1<4 AND REF(GT1,1)-DT1<4 AND REF(L,DT1)<=LLV(L,REF(GT1,1)+6) AND H>HHV(H,REF(GT1,1)+6),1,0),NODRAW;
FG2:=BACKSET(REFX(DT1,1)=0 AND GT1<3 AND DT1-GT1<4 AND REF(H,GT1)<HHV(H,DT1+5),GT1+1),NODRAW;
FD2A:=BACKSET(REFX(DT1,1)=0 AND GT1<3 AND DT1-GT1<4 AND REF(H,GT1)>=HHV(L,DT1+5) AND REF(L,DT1)>LLV(L,DT1+5),DT1+1),NODRAW;
FD2B:=IF(DT1=0 AND GT1<4 AND REF(DT1,1)-GT1<4 AND REF(H,GT1)>=HHV(H,REF(DT1,1)+6) AND L>LLV(L,REF(DT1,1)+6),1,0),NODRAW;
TTTTTT:= H<REF(H,REF(GT1,1)+1) AND DT1<4,NODRAW;
HHHHHH:=REF(LLV(L,10),DT1),NODRAW;
//前长后短;
FG21:=IF(GT1=0 AND DT1<4 AND H<=REF(H,REF(GT1,1)+1)  ,1,0),NODRAW;
FD21:=IF(DT1=0 AND GT1<4  AND L>=REF(L,REF(DT1,1)+1) ,1,0),NODRAW;
//前短后长,前低后高(去低);
FD231:=BACKSET(REFX(GT1,1)=0 AND DT1>3 AND GT1>DT1 AND GT1-DT1<4 AND REFX(H,1)>REF(H,GT1) AND REF(L,DT1)>REF(LLV(L,10),DT1),DT1+1),NODRAW;
FG23:=BACKSET(REFX(GT1,1)=0 AND DT1>3 AND GT1>DT1 AND  GT1-DT1<4 AND REFX(H,1)>REF(H,GT1) AND (REF(H,GT1)<REF(HHV(H,13),GT1) OR REF(FD231,DT1)=0),GT1+1),NODRAW;
FG231:=BACKSET(REFX(DT1,1)=0 AND GT1>3  AND DT1>GT1 AND DT1-GT1<4 AND REFX(L,1)<REF(L,DT1) AND REF(H,GT1)<REF(HHV(H,10),GT1) ,GT1+1),NODRAW;
FD23:=BACKSET(REFX(DT1,1)=0 AND GT1>3  AND DT1>GT1 AND DT1-GT1<4 AND REFX(L,1)<REF(L,DT1) AND ( REF(L,DT1)>REF(LLV(L,13),DT1) OR REF(FG231,GT1)=0),DT1+1),NODRAW;
///前短后长,去3;
FDD23:=REF(H,GT1)<REF(HHV(H,10),GT1) OR REF(FD23,DT1)=0,NODRAW;
FD24:=BACKSET(REFX(GT1,1)=0 AND DT1>3 AND GT1>DT1 AND GT1-DT1<4 AND REFX(H,1)<HHV(H,GT1+3) AND REF(L,DT1)>LLV(L,DT1+5),DT1+1),NODRAW;
FG24:=BACKSET(REFX(DT1,1)=0 AND GT1>3  AND DT1>GT1 AND DT1-GT1<4 AND REFX(L,1)>LLV(L,DT1+3) AND REF(H,GT1)<HHV(H,GT1+5),GT1+1),NODRAW;
GT2:=BARSLAST(FG21<>1 AND FG23<>1 AND FG231<>1 AND FG24<>1   AND FG2<>1 AND FG2A<>1 AND FG2B<>1 AND GT1=0),NODRAW;
DT2:=BARSLAST(FD21<>1 AND FD23<>1 AND FD231<>1 AND FD24<>1  AND FD2<>1 AND FD2A<>1 AND FD2B<>1 AND DT1=0),NODRAW;
FG3:=BACKSET(REFX(GT2,1)=0 AND GT2<DT2 AND REFX(H,1)>=REF(H,GT2),GT2+1),NODRAW;
//HHX:REF(H,GT2),NODRAW;
FD3:=BACKSET(REFX(DT2,1)=0 AND DT2<GT2 AND REFX(L,1)<=REF(L,DT2),DT2+1),NODRAW;
FG31:=IF(GT2=0 AND REF(GT2,1)<DT2 AND H<REF(H,REF(GT2,1)+1),1,0),NODRAW;
FD31:=IF(DT2=0 AND REF(DT2,1)<GT2 AND L>REF(L,REF(DT2,1)+1),1,0),NODRAW;
GT3:=BARSLAST(GT2=0 AND FG3<>1 AND FG31<>1 ),NODRAW;
DT3:=BARSLAST(DT2=0 AND  FD3<>1 AND FD31<>1),NODRAW;
FG4:=BACKSET(REFX(GT3,1)=0 AND GT3<DT3 AND REFX(H,1)>=REF(H,GT3),GT3+1),NODRAW;
FD4:=BACKSET(REFX(DT3,1)=0 AND DT3<GT3 AND REFX(L,1)<=REF(L,DT3),DT3+1),NODRAW;
FG41:=IF(GT3=0 AND REF(GT3,1)<DT3 AND H<REF(H,REF(GT3,1)+1),1,0),NODRAW;
FD41:=IF(DT3=0 AND REF(DT3,1)<GT3 AND L>REF(L,REF(DT3,1)+1),1,0),NODRAW;
HHH:=GT3=0 AND FG31<>1 AND  FG3<>1,NODRAW;
LLL:=DT3=0 AND FD31<>1 AND  FD3<>1,NODRAW;
PARTLINE(FG0&&HHH  ,H,COLORGREEN),CIRCLEDOT,LINETHICK6;
PARTLINE(FD0&&LLL  ,L,COLORCYAN),CIRCLEDOT,LINETHICK6;
//DRAWICON(HHH,H,'ICO5'),VALIGN2;
DRAWTEXT(HHH,H,'空');
//DRAWICON(LLL,L,'ICO4'),VALIGN0;
DRAWTEXT(LLL,L,'多');
DRAWLINE1(HHH ,H,LLL,L,0),COLORGREEN,LINETHICK3;//绿色
DRAWLINE1(LLL,L,HHH ,H,0),COLORRED,LINETHICK3;//红色
//最后一段画线
N1:=BARSLAST(HHH)+1;
N2:=BARSLAST(LLL)+1;
DRAWLINE3(ISLASTBAR&&MIN(N1,N2)=N2&&L>REF(L,N2-1),REF(L,N2-1),N2-1,ISLASTBAR,H,0,0),COLORRED,LINETHICK3;//红色
DRAWLINE3(ISLASTBAR&&MIN(N1,N2)=N1&&H<REF(H,N1-1),REF(H,N1-1),N1-1,ISLASTBAR,L,0,0),COLORGREEN,LINETHICK3;//绿色

PARTLINE(CLOSE>0,MA(CLOSE,5),COLORWHITE);
PARTLINE(CLOSE>0,MA(CLOSE,6),COLORWHITE);
PARTLINE(CLOSE>0,MA(CLOSE,7),COLORWHITE);
PARTLINE(CLOSE>0,MA(CLOSE,8),COLORWHITE);
PARTLINE(CLOSE>0,MA(CLOSE,9),COLORWHITE);
PARTLINE(CLOSE>0,MA(CLOSE,10),COLORWHITE);
PARTLINE(CLOSE>0,MA(CLOSE,25),COLORRED);
PARTLINE(CLOSE>0,MA(CLOSE,26),COLORRED);
PARTLINE(CLOSE>0,MA(CLOSE,27),COLORRED);
PARTLINE(CLOSE>0,MA(CLOSE,28),COLORRED);
PARTLINE(CLOSE>0,MA(CLOSE,29),COLORRED);
PARTLINE(CLOSE>0,MA(CLOSE,30),COLORRED);
DRAWTEXT(CROSS(MIN1(MA(CLOSE,5),MA(CLOSE,6),MA(CLOSE,7),MA(CLOSE,8),MA(CLOSE,9),MA(CLOSE,10)),MIN1(MA(CLOSE,25),MA(CLOSE,26),MA(CLOSE,27),MA(CLOSE,28),MA(CLOSE,29),MA(CLOSE,30))),MIN1(MA(CLOSE,5),MA(CLOSE,6),MA(CLOSE,7),MA(CLOSE,8),MA(CLOSE,9),MA(CLOSE,10)),'买'),VALIGN0,COLORRED,FONTSIZE20;
DRAWTEXT(CROSSDOWN(MAX1(MA(CLOSE,5),MA(CLOSE,6),MA(CLOSE,7),MA(CLOSE,8),MA(CLOSE,9),MA(CLOSE,10)),MAX1(MA(CLOSE,25),MA(CLOSE,26),MA(CLOSE,27),MA(CLOSE,28),MA(CLOSE,29),MA(CLOSE,30))),MAX1(MA(CLOSE,5),MA(CLOSE,6),MA(CLOSE,7),MA(CLOSE,8),MA(CLOSE,9),MA(CLOSE,10)),'卖'),COLORGREEN,FONTSIZE20;
CROSS(MIN1(MA(CLOSE,5),MA(CLOSE,6),MA(CLOSE,7),MA(CLOSE,8),MA(CLOSE,9),MA(CLOSE,10)),MIN1(MA(CLOSE,25),MA(CLOSE,26),MA(CLOSE,27),MA(CLOSE,28),MA(CLOSE,29),MA(CLOSE,30)))||CROSSDOWN(MAX1(MA(CLOSE,5),MA(CLOSE,6),MA(CLOSE,7),MA(CLOSE,8),MA(CLOSE,9),MA(CLOSE,10)),MAX1(MA(CLOSE,25),MA(CLOSE,26),MA(CLOSE,27),MA(CLOSE,28),MA(CLOSE,29),MA(CLOSE,30))),SOUND('A');
 
指标三
突破:=REF(EMA(C,14),1);
A1X:=(EMA(C,10)-突破)/突破*100;
多方:=IF(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),NULL);
空方:=IF(A1X<0,REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1),NULL);
STICKLINE(A1X>=0,多方,突破,10,0),COLOR000099;
STICKLINE(A1X<0,空方,突破,10,0),COLOR00CC66; 
DRAWTEXT(CROSS(A1X>=0,0.5),多方,'买'),VALIGN0;
DRAWTEXT(CROSS(A1X<0,0.5),空方,'卖'); 
 
指标四:
 
CURRBARSCOUNT:=REFX1(BARPOS,9999)-BARPOS+1;
DRAWGBK(C>O,RGB(60,0,0),RGB(0,0,0),1);
/*
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
*/
//DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORRED;
金牛:(REFX1(MA(REFX1(MA(H,25),25/2),25),25/2)-REFX1(MA(REFX1(MA(L,25),25/2),25),25/2))*1+REFX1(MA(REFX1(MA(H,25),25/2),25),25/2),DOT,COLORYELLOW;
金钻趋势:REFX1(MA(REFX1(MA(L,25),25/2),25),25/2)-(REFX1(MA(REFX1(MA(H,25),25/2),25),25/2)-REFX1(MA(REFX1(MA(L,25),25/2),25),25/2))*1,LINETHICK2,COLORRED;
金牛2:EMA(金钻趋势,25),COLORCYAN,LINETHICK2;
FILLRGN(金钻趋势>金牛2,金钻趋势,金牛2,RGB(55,0,0));
FILLRGN(金钻趋势<金牛2,金钻趋势,金牛2,RGB(0,91,0));
DRAWKLINE1(H,O,L,C);
STICKLINE1(金钻趋势>LOW AND 金钻趋势<HIGH,金钻趋势,MIN(MIN(OPEN,CLOSE),金钻趋势),2,0),COLORYELLOW;
STICKLINE1(金钻趋势>MIN(C,O) AND 金钻趋势<MAX(C,O),金钻趋势,MIN(OPEN,CLOSE),2,0),COLORYELLOW;
STICKLINE1(金钻趋势>HIGH,OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE1(金钻趋势>HIGH,HIGH,LOW,0,0),COLORYELLOW;
VAR23:=100*REFX1(MA(REFX1(MA(C-REF(C,1),6),6/2),6),6/2)/REFX1(MA(REFX1(MA(ABS(C-REF(C,1)),6),6/2),6),6/2);
回调买:=LLV(VAR23,2)=LLV(VAR23,7) AND COUNT(VAR23<0,2) AND CROSS(VAR23,MA(VAR23,2));
XG:=金钻趋势>HIGH AND 回调买 AND L<=金钻趋势;
DRAWTEXT(XG,L,'▲买入'),COLORRED;
JJ:=(HIGH+LOW+CLOSE)/3;
QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
CAPITAL:=GETPRICE1('流通股本');
QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));
QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));
QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));
QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));
DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,10000,10000),COLOR00AAAA;
V2:=SMA(IF(C>=REF(C,1),DDX,-DDX/100),2,1);
FROMOPEN:=IF(HOUR<12,60*(HOUR-9)-30+MINUTE,120+60*(HOUR-13)+MINUTE);
V5:=SMA(V2*120/FROMOPEN*5,2,1);
V10:=SMA(V5,5,1);
V20:=SMA(V10,5,1);
DY:=CURRBARSCOUNT=1 AND C<REF(C,1);
DY2:=REF(V2,1)-DY;
XG2:=C>O AND DY2<0.02 AND MA(C,5)>MA(C,60) AND C/REF(C,1)>=1.02 AND H<金牛;

DRAWTEXT(XG2 AND L<金钻趋势,L,'金钻起涨'),COLORMAGENTA;

 
 

 

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

博易技术人员: 麻烦把以上几个指标改成博易大师能用的,谢谢 请问谁能帮我转化成博易大师能用的谢谢
  来源 程序化久久网

 

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

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

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

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


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

相关文章

    没有相关内容