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

请老师修改 [博易POBO]

咨询内容:

请老师修改

TT:ABS(C-REF(C,1))/REF(C,1)<0.1;
MA5:MA(C,5),NODRAW;
MA10:MA(C,20),NODRAW;
MA20:MA(C,60),NODRAW;
DD:MA5>MA10&&MA10>MA20;
KK:MA5<MA10&&MA10<MA20;
SS:C>HV(MAX(C,O),5);
SS1:C<LV(MIN(C,O),5);
DHC:COUNT(SS1,SUMBARS(SS,1))=1&&SS1;
BF1:BACKSET(DHC,SUMBARS(SS,1));
DRAWTEXT(CROSS(BF1,0.3)&&TT,H,'做空');
DRAWICON(REF(DHC,0.5)&&C>REF(C,1)&&DD,L,4),VALIGN0;

T6C:=VALUEWHEN(REF(DHC,1)&&C>REF(C,1)&&DD,C);
ZS1:=L<T6C*(1-0.005);
ZS2:=COUNT(ZS1,SUMBARS(REF(DHC,1)&&C>REF(C,1)&&DD,1))=1&&ZS1&&SUMBARS(REF(DHC,1)&&C>REF(C,1)&&DD,1)>1;
DRAWTEXT(ZS2,H,'止损'),COLORRED;

BFC:=VALUEWHEN(CROSS(BF1,0.5),H);
ZY1:=C<REF(C,1)*(1-0.005) && H>BFC;
ZY2:=COUNT(ZY1,SUMBARS(REF(DHC,1)&&C>REF(C,1)&&DD,1))=1&&ZY1&&EXIST(REF(DHC,1)&&C>REF(C,1)&&DD,SUMBARS(CROSS(BF1,0.5),1));
DRAWTEXT(ZY2,H,'止赢'),COLORRED;

KHC:COUNT(SS,SUMBARS(SS1,1))=1&&SS;
BG1:BACKSET(KHC,SUMBARS(SS1,1));
DRAWTEXT(CROSS(BG1,0.3)&&TT,L,'做多'),VALIGN0;
DRAWICON(REF(KHC,1)&&C<REF(C,1)&&KK,H,5);

XT6C:=VALUEWHEN(REF(KHC,1)&&C<REF(C,1)&&KK,C);
XZS1:=H>XT6C*(1+0.005);
XZS2:=COUNT(XZS1,SUMBARS(REF(KHC,1)&&C<REF(C,1)&&KK,1))=1&&XZS1&&SUMBARS(REF(KHC,1)&&C<REF(C,1)&&KK,1)>1;
DRAWTEXT(XZS2,L,'止损'),COLORGREEN;

XBFC:=VALUEWHEN(CROSS(BG1,0.5),L);
XZY1:=C>REF(C,1)*(1+0.005) && L<XBFC;
XZY2:=COUNT(XZY1,SUMBARS(REF(KHC,1)&&C<REF(C,1)&&KK,1))=1&&XZY1&&EXIST(REF(KHC,1)&&C<REF(C,1)&&KK,SUMBARS(CROSS(BG1,0.5),1));
DRAWTEXT(XZY2,L,'止赢'),COLORGREEN;



N:=0.1;
N1:=PEAKBARS(H,N,1,1);
N2:=TROUGHBARS(L,N,1,1);
HH:=BACKSET(N2=0&&EXIST(N1=0,REF(BARSLAST(N2=0),1)),HHVBARS(H,REF(BARSLAST(N2=0),1))+1);
LL:=BACKSET(N1=0&&EXIST(N2=0,REF(BARSLAST(N1=0),1)),LLVBARS(L,REF(BARSLAST(N1=0),1))+1);
HD:=CROSS(HH,0.5);
LD:=CROSS(LL,0.5);
//DRAWLINE1(LD,L,HD,H,0);
//DRAWLINE1(HD,H,LD,L,0);
A:=REF(H,BARSLAST(HD));
B:=REF(L,BARSLAST(LD));
T1:=BARSLAST(HD)<BARSLAST(LD) ;
T2:=BARSLAST(HD)>BARSLAST(LD) ;
AA:=BACKSET(ISLASTBAR,SUMBARS(CROSS(T1,0.5),1));
BB:=BACKSET(ISLASTBAR,SUMBARS(CROSS(T2,0.5),1));
压力:IF(T1&&AA,A,NULL),COLORWHITE,LINETHICK2;
DRAWTEXT(CROSS(T1&&AA,0.5),A,'压力'),ALIGN0,FONTSIZE30;
支撑:IF(T2&&BB,B,NULL),COLORWHITE,LINETHICK2;
DRAWTEXT(CROSS(T2&&BB=1,0.5),B,'支撑'),VALIGN0,ALIGN0,FONTSIZE30;

 

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

博易技术人员: TT:=ABS(C-REF(C,1))/REF(C,1)<0.1;
MA5:MA(C,5),NODRAW;
MA10:MA(C,20),NODRAW;
MA20:MA(C,60),NODRAW;
DD:=MA5>MA10&&MA10>MA20;
KK:=MA5<MA10&&MA10<MA20;
SS:=C>=HHV(MAX(C,O),5);
SS1:=C<=LLV(MIN(C,O),5);
DHC:=COUNT(SS1,SUMBARS(SS,1))=1&&SS1;
BF1:=BACKSET(DHC,SUMBARS(SS,1));
DRAWTEXT(CROSS(BF1,0.3)&&TT,H,'做空');
DRAWICON(REF(DHC,0.5)&&C>REF(C,1)&&DD,L,4),VALIGN0;

T6C:=VALUEWHEN(REF(DHC,1)&&C>REF(C,1)&&DD,C);
ZS1:=L<T6C*(1-0.005);
ZS2:=COUNT(ZS1,SUMBARS(REF(DHC,1)&&C>REF(C,1)&&DD,1))=1&&ZS1&&SUMBARS(REF(DHC,1)&&C>REF(C,1)&&DD,1)>1;
DRAWTEXT(ZS2,H,'止损'),COLORRED;

BFC:=VALUEWHEN(CROSS(BF1,0.5),H);
ZY1:=C<REF(C,1)*(1-0.005) && H>BFC;
ZY2:=COUNT(ZY1,SUMBARS(REF(DHC,1)&&C>REF(C,1)&&DD,1))=1&&ZY1&&COUNT(REF(DHC,1)&&C>REF(C,1)&&DD,SUMBARS(CROSS(BF1,0.5),1));
DRAWTEXT(ZY2,H,'止赢'),COLORRED;

KHC:=COUNT(SS,SUMBARS(SS1,1))=1&&SS;
BG1:=BACKSET(KHC,SUMBARS(SS1,1));
DRAWTEXT(CROSS(BG1,0.3)&&TT,L,'做多'),VALIGN0;
DRAWICON(REF(KHC,1)&&C<REF(C,1)&&KK,H,5);

XT6C:=VALUEWHEN(REF(KHC,1)&&C<REF(C,1)&&KK,C);
XZS1:=H>XT6C*(1+0.005);
XZS2:=COUNT(XZS1,SUMBARS(REF(KHC,1)&&C<REF(C,1)&&KK,1))=1&&XZS1&&SUMBARS(REF(KHC,1)&&C<REF(C,1)&&KK,1)>1;
DRAWTEXT(XZS2,L,'止损'),COLORGREEN;

XBFC:=VALUEWHEN(CROSS(BG1,0.5),L);
XZY1:=C>REF(C,1)*(1+0.005) && L<XBFC;
XZY2:=COUNT(XZY1,SUMBARS(REF(KHC,1)&&C<REF(C,1)&&KK,1))=1&&XZY1&&COUNT(REF(KHC,1)&&C<REF(C,1)&&KK,SUMBARS(CROSS(BG1,0.5),1));
DRAWTEXT(XZY2,L,'止赢'),COLORGREEN;



N:=0.1;
N1:=PEAKBARS(H,N,1,1);
N2:=TROUGHBARS(L,N,1,1);
HH:=BACKSET(N2=0&&COUNT(N1=0,REF(BARSLAST(N2=0),1)),HHVBARS(H,REF(BARSLAST(N2=0),1))+1);
LL:=BACKSET(N1=0&&COUNT(N2=0,REF(BARSLAST(N1=0),1)),LLVBARS(L,REF(BARSLAST(N1=0),1))+1);
HD:=CROSS(HH,0.5);
LD:=CROSS(LL,0.5);
//DRAWLINE1(LD,L,HD,H,0);
//DRAWLINE1(HD,H,LD,L,0);
A:=REF(H,BARSLAST(HD));
B:=REF(L,BARSLAST(LD));
T1:=BARSLAST(HD)<BARSLAST(LD) ;
T2:=BARSLAST(HD)>BARSLAST(LD) ;
AA:=BACKSET(ISLASTBAR,SUMBARS(CROSS(T1,0.5),1));
BB:=BACKSET(ISLASTBAR,SUMBARS(CROSS(T2,0.5),1));
压力:=IF(T1&&AA,A,DRAWNULL),COLORWHITE,LINETHICK2;
DRAWTEXT(CROSS(T1&&AA,0.5),A,'压力'),ALIGN0,FONTSIZE30;
支撑:=IF(T2&&BB,B,DRAWNULL),COLORWHITE,LINETHICK2;
DRAWTEXT(CROSS(T2&&BB=1,0.5),B,'支撑'),VALIGN0,ALIGN0,FONTSIZE30; 谢谢老师 来源 程序化久久网

 

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

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

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

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


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

相关文章

    没有相关内容