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

辛苦老师改为博易用,谢谢! [博易POBO]

咨询内容:

辛苦老师改为博易用,谢谢!

 DRAWTEXT(CROSS(REF(ZIGZAG(C,1,1),1),ZIGZAG(C,1,1))&&C<=O,HIGH,'空'),COLORGREEN,FONTSIZE16;
DRAWTEXT(CROSS(ZIGZAG(C,1,1),REF(ZIGZAG(C,1,1),1))&&C>=O,LOW,'多'),COLORMAGENTA,VALIGN0,FONTSIZE16;
VAR1:=LLV((OPEN+CLOSE)/2,21);
VAR2:=HHV((OPEN+CLOSE)/2,9);
AK1:=EMA(((((OPEN+CLOSE)/2 - VAR1) / (VAR2 - VAR1)) * 100),5);
AK:=EMA(((((OPEN+CLOSE)/2 - VAR1) / (VAR2 - VAR1)) * 50),13);
DD:=EMA(((0.467 * REF(AK1,1)) + (0.133 * AK1)),2);
VAR3:=LLV((OPEN+CLOSE)/2,21);
VAR4:=HHV((OPEN+CLOSE)/2,9);
VAR5:=EMA(((((OPEN+CLOSE)/2 - VAR3) / (VAR4 - VAR3)) * 100),3);
VAR6:=((AK + VAR5) / 2);
VAR8:=EMA(VAR6,5);
BB:=EMA(((0.467 * REF(VAR8,1)) + (0.133 * VAR8)),2);
AB:=CROSS(AK1,AK);
BB1:=(CROSS(AK1,BB) AND (BB < 30));
CD:=(BB1 * 0.6);
Y:=(H+L)/2;
BLUE:=SMA(Y,13,1);
RED:=SMA(Y,8,1);
GREEN:=SMA(Y,5,1);
B2:=REF(BLUE,8);
R2:=REF(RED,5);
G2:=REF(GREEN,3);
KU1:=IF(H=HHV(H,3),1,0);
KD1:=IF(L=LLV(L,3),1,0);
UL:=IF(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0,REF(H,2),REF(H,2+BARSLAST(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0)));
DL:=IF(REF(KD1,2)=1 AND REF(KD1,1)=0 AND KD1=0,REF(L,2),REF(L,2+BARSLAST(REF(KD1,2)=1 AND REF(KD1,1)=0 AND KD1=0)));
KU:=IF(C>B2 AND C>R2 AND C>G2,1,0);
KD:=IF(C<B2 AND C<R2 AND C<G2,-1,0);
KK:=IF(BARSLAST(KU=1 AND REF(KU,1)=0)<BARSLAST(KD=-1 AND REF(KD,1)=0),1,-1);
AO:=MA(Y,5)-MA(Y,34);
AC:=MA(AO-MA(AO,5),5);
AC1:=REF(AC,1);
AO1:=REF(AO,1);
KAC:=IF(AC>AC1 AND AO>AO1,1,0);
KAO:=IF(AC<AC1 AND AO<AO1,-1,0);
H1:=REF(H,4);
H2:=REF(H,3);
H3:=REF(H,2);
H4:=REF(H,1);
H5:=H;
L1:=REF(L,4);
L2:=REF(L,3);
L3:=REF(L,2);
L4:=REF(L,1);
L5:=L;
‖:=H3>H2 AND H3>H1 AND H3>H4 AND H3>H5;
‖FRACTAL:=IF(‖,1,0);
‖VAR1:=BACKSET(‖FRACTAL,3);
‖VAR2:=FILTER(‖VAR1,2);
‖VAR3:=BACKSET(‖FRACTAL,5);
∣:=L3<L2 AND L3<L1 AND L3<L4 AND L3<L5;
∣FRACTAL:=IF(∣,1,0);
∣VAR1:=BACKSET(∣FRACTAL,3);
∣VAR2:=FILTER(∣VAR1,2);
∣VAR3:=BACKSET(∣FRACTAL,5);
N1:=BARSLAST(CROSS(REF(ZIGZAG(C,1,1),1),ZIGZAG(C,1,1)))+1;
N2:=BARSLAST(CROSS(ZIGZAG(C,1,1),REF(ZIGZAG(C,1,1),1)))+1;

DRAWSL(REF(C>=O,N2-1)&&REFX(CROSS(REF(ZIGZAG(C,1,1),1),ZIGZAG(C,1,1)),1)=1,REF(O,N2-1),0,-N2+1,0,COLORMAGENTA),LINETHICK2;
DRAWSL(REF(C<=O,N1-1)&&REFX(CROSS(ZIGZAG(C,1,1),REF(ZIGZAG(C,1,1),1)),1)=1,REF(O,N1-1),0,-N1+1,0,COLORGREEN),LINETHICK2;
DRAWSL(REF(C>=O,N2-1)&&REF(CROSS(ZIGZAG(C,1,1),REF(ZIGZAG(C,1,1),1)),N2-1)&&ISLASTBAR&&N1>N2,REF(O,N2-1),0,-N2+1,0,COLORMAGENTA),LINETHICK2;
DRAWSL(REF(C<=O,N1-1)&&REF(CROSS(REF(ZIGZAG(C,1,1),1),ZIGZAG(C,1,1)),N1-1)&&ISLASTBAR&&N1<N2,REF(O,N1-1),0,-N1+1,0,COLORGREEN),LINETHICK2;

 

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

博易技术人员: DRAWTEXT(CROSS(REF(ZIG(C,1,1),1),ZIG(C,1,1))&&C<=O,HIGH,'空'),COLORGREEN,FONTSIZE16;
DRAWTEXT(CROSS(ZIG(C,1,1),REF(ZIG(C,1,1),1))&&C>=O,LOW,'多'),COLORMAGENTA,VALIGN0,FONTSIZE16;
VAR1:=LLV((OPEN+CLOSE)/2,21);
VAR2:=HHV((OPEN+CLOSE)/2,9);
AK1:=EMA(((((OPEN+CLOSE)/2 - VAR1) / (VAR2 - VAR1)) * 100),5);
AK:=EMA(((((OPEN+CLOSE)/2 - VAR1) / (VAR2 - VAR1)) * 50),13);
DD:=EMA(((0.467 * REF(AK1,1)) + (0.133 * AK1)),2);
VAR3:=LLV((OPEN+CLOSE)/2,21);
VAR4:=HHV((OPEN+CLOSE)/2,9);
VAR5:=EMA(((((OPEN+CLOSE)/2 - VAR3) / (VAR4 - VAR3)) * 100),3);
VAR6:=((AK + VAR5) / 2);
VAR8:=EMA(VAR6,5);
BB:=EMA(((0.467 * REF(VAR8,1)) + (0.133 * VAR8)),2);
AB:=CROSS(AK1,AK);
BB1:=(CROSS(AK1,BB) AND (BB < 30));
CD:=(BB1 * 0.6);
Y:=(H+L)/2;
BLUE:=SMA(Y,13,1);
RED:=SMA(Y,8,1);
GREEN:=SMA(Y,5,1);
B2:=REF(BLUE,8);
R2:=REF(RED,5);
G2:=REF(GREEN,3);
KU1:=IF(H=HHV(H,3),1,0);
KD1:=IF(L=LLV(L,3),1,0);
UL:=IF(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0,REF(H,2),REF(H,2+BARSLAST(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0)));
DL:=IF(REF(KD1,2)=1 AND REF(KD1,1)=0 AND KD1=0,REF(L,2),REF(L,2+BARSLAST(REF(KD1,2)=1 AND REF(KD1,1)=0 AND KD1=0)));
KU:=IF(C>B2 AND C>R2 AND C>G2,1,0);
KD:=IF(C<B2 AND C<R2 AND C<G2,-1,0);
KK:=IF(BARSLAST(KU=1 AND REF(KU,1)=0)<BARSLAST(KD=-1 AND REF(KD,1)=0),1,-1);
AO:=MA(Y,5)-MA(Y,34);
AC:=MA(AO-MA(AO,5),5);
AC1:=REF(AC,1);
AO1:=REF(AO,1);
KAC:=IF(AC>AC1 AND AO>AO1,1,0);
KAO:=IF(AC<AC1 AND AO<AO1,-1,0);
H1:=REF(H,4);
H2:=REF(H,3);
H3:=REF(H,2);
H4:=REF(H,1);
H5:=H;
L1:=REF(L,4);
L2:=REF(L,3);
L3:=REF(L,2);
L4:=REF(L,1);
L5:=L;
‖:=H3>H2 AND H3>H1 AND H3>H4 AND H3>H5;
‖FRACTAL:=IF(‖,1,0);
‖VAR1:=BACKSET(‖FRACTAL,3);
‖VAR2:=FILTER(‖VAR1,2);
‖VAR3:=BACKSET(‖FRACTAL,5);
∣:=L3<L2 AND L3<L1 AND L3<L4 AND L3<L5;
∣FRACTAL:=IF(∣,1,0);
∣VAR1:=BACKSET(∣FRACTAL,3);
∣VAR2:=FILTER(∣VAR1,2);
∣VAR3:=BACKSET(∣FRACTAL,5);
N1:=BARSLAST(CROSS(REF(ZIG(C,1,1),1),ZIG(C,1,1)))+1;
N2:=BARSLAST(CROSS(ZIG(C,1,1),REF(ZIG(C,1,1),1)))+1;

DRAWSL(REF(C>=O,N2-1)&&REFX(CROSS(REF(ZIG(C,1,1),1),ZIG(C,1,1)),1)=1,REF(O,N2-1),0,N2-1,1),COLORMAGENTA,LINETHICK2;
DRAWSL(REF(C<=O,N1-1)&&REFX(CROSS(ZIG(C,1,1),REF(ZIG(C,1,1),1)),1)=1,REF(O,N1-1),0,N1-1,1),COLORGREEN,LINETHICK2;
DRAWSL(REF(C>=O,N2-1)&&REF(CROSS(ZIG(C,1,1),REF(ZIG(C,1,1),1)),N2-1)&&ISLASTBAR&&N1>N2,REF(O,N2-1),0,N2-1,1),COLORMAGENTA,LINETHICK2;
DRAWSL(REF(C<=O,N1-1)&&REF(CROSS(REF(ZIG(C,1,1),1),ZIG(C,1,1)),N1-1)&&ISLASTBAR&&N1<N2,REF(O,N1-1),0,N1-1,1),COLORGREEN,LINETHICK2; 来源 程序化久久网

 

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

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

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

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


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

相关文章

    没有相关内容