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

请老师帮忙修改 [博易POBO]

咨询内容:

请老师帮忙修改

N:=33;
UR:=6;
LR:=6;
CURRBARSCOUNT:=REFX1(BARPOS,9999)-BARPOS+1;
TC1:=IF(H=HHV(H,8*UR),H,NULL);
TC2:=REFX1(BARSLAST(TC1=H),10000)+1;
UPPER:=REFX1(IF(TC2=1,H,REF(H,TC2-1)),10000);
BC1:=IF(L=LLV(L,8*LR),L,NULL);
BC2:=REFX1(BARSLAST(BC1=L),10000)+1;
LOWER:=REFX1(IF(BC2=1,L,REF(L,BC2-1)),10000);
LP:=CURRBARSCOUNT<=BC2 AND L=LOWER;

HP:=CURRBARSCOUNT<=TC2 AND H=UPPER;

STICKLINE1(IF(BC2>TC2,HP,LP),LOWER,UPPER,0,0),COLOR628962;

STICKLINE1(IF(BC2>TC2,LP,HP),LOWER,UPPER,0,0),COLOR628962;

NOD:=(IF(TC2>BC2,TC2,BC2)-IF(TC2>BC2,BC2,TC2));

LR1:=FORCAST(C,NOD+1);
NP:IF(CURRBARSCOUNT<=MAX(BC2,TC2),REFX1(IF(MIN(TC2,BC2)=1,LR1,REF(LR1,MIN(TC2,BC2)-1)),10000),NULL),POINTDOT,COLORFFFFFF;
DRAWNUMBER(ISLASTBAR,NP,NP,2,COLORWHITE);
{近点}
LR2:=SLOPE(C,NOD+1);
LR3:=REFX1(IF(MIN(TC2,BC2)=1,LR2,REF(LR2,MIN(TC2,BC2)-1)),10000);
FP:NP-LR3*(NOD),POINTDOT,COLORFFFFFF;
DRAWNUMBER(ISLASTBAR,FP,FP,2,COLORWHITE);
{远点}
EQU:(NP+FP)/2,POINTDOT,COLORFFFFFF;
DRAWNUMBER(ISLASTBAR,EQU,EQU,2,COLORWHITE);

{中点}
AD:=ABS(NP-FP);

DBL:=BARSLAST(NOT(ISNULL(BC1)))+1;
DBH:=BARSLAST(NOT(ISNULL(TC1)))+1;
BSP:=IF(BC2>TC2,DBL,DBH)-1;
LRL:=IF(NP>FP,FP+AD/NOD*BSP,FP-AD/NOD*BSP);
AT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC2) AND H>LRL,H,LRL);
AT2:=HHV(AT1-LRL,MAX(BC2,TC2));
AT3:=REFX1(BARSLAST(AT1-LRL=AT2),10000);
AT4:=REFX1(IF(AT3=0,H,REF(H,AT3)),10000);
AT5:=REFX1(IF(AT3=0,AT1-LRL,REF(AT1-LRL,AT3)),10000);
ATL:=LRL+AT5;
UT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC2) AND L<LRL,L,LRL);
UT2:=HHV(LRL-UT1,MAX(BC2,TC2));
UT3:=REFX1(BARSLAST(LRL-UT1=UT2),10000);
UT4:=REFX1(IF(UT3=0,H,REF(H,UT3)),10000);
UT5:=REFX1(IF(UT3=0,LRL-UT1,REF(LRL-UT1,UT3)),10000);
UTL:=LRL-UT5;
RH:=IF(CURRBARSCOUNT>=MIN(BC2,TC2)-10,ATL,REFX1(REF(ATL,MIN(BC2,TC2)-11),10000));
RL:=IF(CURRBARSCOUNT>=MIN(BC2,TC2)-10,UTL,REFX1(REF(UTL,MIN(BC2,TC2)-11),10000));

IF(NP>FP,IF(ATL<=RH,ATL,NULL),IF(ATL>=RL,ATL,NULL)),COLORYELLOW;

IF(NP>FP,IF(UTL<=RH,UTL,NULL),IF(UTL>=RL,UTL,NULL)),COLORFFFFFF;

 

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

博易技术人员: N:=33;
UR:=6;
LR:=6;

CURRBARSCOUNT:=REFX(BARPOS,DATACOUNT-BARPOS-1)-BARPOS+1;
TC1:=IF(H=HHV(H,8*UR),H,DRAWNULL);
TC2:=REFX(BARSLAST(TC1=H),DATACOUNT-BARPOS-1)+1;
UPPER:=REFX(IF(TC2=1,H,REF(H,TC2-1)),DATACOUNT-BARPOS-1);
BC1:=IF(L=LLV(L,8*LR),L,DRAWNULL);
BC2:=REFX(BARSLAST(BC1=L),DATACOUNT-BARPOS-1)+1;
LOWER:=REFX(IF(BC2=1,L,REF(L,BC2-1)),DATACOUNT-BARPOS-1);
LP:=CURRBARSCOUNT<=BC2 AND L=LOWER;

HP:=CURRBARSCOUNT<=TC2 AND H=UPPER;

STICKLINE(IF(BC2>TC2,HP,LP),LOWER,UPPER,5,0),COLOR628962;

STICKLINE(IF(BC2>TC2,LP,HP),LOWER,UPPER,5,0),COLOR628962;

NOD:=(IF(TC2>BC2,TC2,BC2)-IF(TC2>BC2,BC2,TC2));

LR1:=FORCAST(C,NOD+1);
NP:IF(CURRBARSCOUNT<=MAX(BC2,TC2),REFX(IF(MIN(TC2,BC2)=1,LR1,REF(LR1,MIN(TC2,BC2)-1)),DATACOUNT-BARPOS-1),DRAWNULL),POINTDOT,COLORFFFFFF;
DRAWNUMBER(ISLASTBAR,NP,NP,2),COLORWHITE;
{近点}
LR2:=SLOPE(C,NOD+1);
LR3:=REFX(IF(MIN(TC2,BC2)=1,LR2,REF(LR2,MIN(TC2,BC2)-1)),DATACOUNT-BARPOS-1);
FP:NP-LR3*(NOD),POINTDOT,COLORFFFFFF;
DRAWNUMBER(ISLASTBAR,FP,FP,2),COLORWHITE;
{远点}
EQU:(NP+FP)/2,POINTDOT,COLORFFFFFF;
DRAWNUMBER(ISLASTBAR,EQU,EQU,2),COLORWHITE;

{中点}
AD:=ABS(NP-FP);

DBL:=BARSLAST(BC1)+1;
DBH:=BARSLAST(TC1)+1;
BSP:=IF(BC2>TC2,DBL,DBH)-1;
LRL:=IF(NP>FP,FP+AD/NOD*BSP,FP-AD/NOD*BSP);
AT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC2) AND H>LRL,H,LRL);
AT2:=HHV(AT1-LRL,MAX(BC2,TC2));
AT3:=REFX(BARSLAST(AT1-LRL=AT2),DATACOUNT-BARPOS-1);
AT4:=REFX(IF(AT3=0,H,REF(H,AT3)),DATACOUNT-BARPOS-1);
AT5:=REFX(IF(AT3=0,AT1-LRL,REF(AT1-LRL,AT3)),DATACOUNT-BARPOS-1);
ATL:=LRL+AT5;
UT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC2) AND L<LRL,L,LRL);
UT2:=HHV(LRL-UT1,MAX(BC2,TC2));
UT3:=REFX(BARSLAST(LRL-UT1=UT2),DATACOUNT-BARPOS-1);
UT4:=REFX(IF(UT3=0,H,REF(H,UT3)),DATACOUNT-BARPOS-1);
UT5:=REFX(IF(UT3=0,LRL-UT1,REF(LRL-UT1,UT3)),DATACOUNT-BARPOS-1);
UTL:=LRL-UT5;
RH:=IF(CURRBARSCOUNT>=MIN(BC2,TC2)-10,ATL,REFX(REF(ATL,MIN(BC2,TC2)-11),DATACOUNT-BARPOS-1));
RL:=IF(CURRBARSCOUNT>=MIN(BC2,TC2)-10,UTL,REFX(REF(UTL,MIN(BC2,TC2)-11),DATACOUNT-BARPOS-1));

IF(NP>FP,IF(ATL<=RH,ATL,DRAWNULL),IF(ATL>=RL,ATL,DRAWNULL)),COLORYELLOW;

IF(NP>FP,IF(UTL<=RH,UTL,DRAWNULL),IF(UTL>=RL,UTL,DRAWNULL)),COLORFFFFFF; 来源 程序化久久网

 

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

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

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

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


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

相关文章

    没有相关内容