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

请老师看看咋不显示 [博易POBO]

咨询内容: 请老师看看咋不显示 DAYBARPOS:=BARSLAST(REF(HOUR,1)=15 AND HOUR<>15);
UR:=120;
LR:=120;
CURRBARSCOUNT:=REFX(BARPOS,9999)-BARPOS+1;
TC1:=IF(H=HHV(H,8*UR),H,DRAWNULL);
TC2:=REFX(BARSLAST(TC1=H),9999)+1;
UPPER:=REFX(IF(TC2=1,H,REF(H,TC2-1)),9999);
BC1:=IF(L=LLV(L,8*LR),L,DRAWNULL);
BC2:=REFX(BARSLAST(BC1=L),9999)+1;
LOWER:=REFX(IF(BC2=1,L,REF(L,BC2-1)),9999);
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)),9999),DRAWNULL),COLORGREEN,LINETHICK3;
LR2:=SLOPE(C,NOD+1);
LR3:=REFX(IF(MIN(TC2,BC2)=1,LR2,REF(LR2,MIN(TC2,BC2)-1)),9999);
FP:NP-LR3*(NOD),COLORYELLOW,LINETHICK3;
EQU:(NP+FP)/2;
IF(EQU<NP,EQU,DRAWNULL),COLORRED,LINETHICK5;
IF(EQU>NP,EQU,DRAWNULL),COLORBLUE,LINETHICK5;
IF(EQU=NP,EQU,DRAWNULL),COLORYELLOW,LINETHICK3;
//H=HHV(H,8*UR)||L=LLV(L,8*LR),SOUND('A');
DRAWTEXT(ISLASTBAR,FP,'反手'),ALIGN0,VALIGN1,FONTSIZE30,COLORYELLOW;
DRAWTEXT(ISLASTBAR,NP,'主力'),ALIGN0,VALIGN1,FONTSIZE30;
DRAWTEXT(ISLASTBAR,EQU,'开仓'),ALIGN0,VALIGN1,FONTSIZE30;

 

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

博易技术人员: DAYBARPOS:=BARSLAST(REF(HOUR,1)=15 AND HOUR<>15);
UR:=120;
LR:=120;
CURRBARSCOUNT:=DATACOUNT-BARPOS+1;
CURRBARSCOUNT1:=DATACOUNT-BARPOS-1;
TC1:=IF(H=HHV(H,8*UR),H,DRAWNULL);
TC2:=REFX(BARSLAST(TC1=H),CURRBARSCOUNT1)+1;
UPPER:=REFX(IF(TC2=1,H,REF(H,TC2-1)),CURRBARSCOUNT1);
BC1:=IF(L=LLV(L,8*LR),L,DRAWNULL);
BC2:=REFX(BARSLAST(BC1=L),CURRBARSCOUNT1)+1;
LOWER:=REFX(IF(BC2=1,L,REF(L,BC2-1)),CURRBARSCOUNT1);
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)),CURRBARSCOUNT1),DRAWNULL),COLORGREEN,LINETHICK3;
LR2:=SLOPE(C,NOD+1);
LR3:=REFX(IF(MIN(TC2,BC2)=1,LR2,REF(LR2,MIN(TC2,BC2)-1)),CURRBARSCOUNT1);
FP:NP-LR3*(NOD),COLORYELLOW,LINETHICK3;
EQU:(NP+FP)/2;
IF(EQU<NP,EQU,DRAWNULL),COLORRED,LINETHICK5;
IF(EQU>NP,EQU,DRAWNULL),COLORBLUE,LINETHICK5;
IF(EQU=NP,EQU,DRAWNULL),COLORYELLOW,LINETHICK3;
//H=HHV(H,8*UR)||L=LLV(L,8*LR),SOUND('A');
DRAWTEXT(ISLASTBAR,FP,'反手'),ALIGN0,VALIGN1,FONTSIZE30,COLORYELLOW;
DRAWTEXT(ISLASTBAR,NP,'主力'),ALIGN0,VALIGN1,FONTSIZE30;
DRAWTEXT(ISLASTBAR,EQU,'开仓'),ALIGN0,VALIGN1,FONTSIZE30; 谢谢老师 来源 程序化久久网

 

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

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

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

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


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

相关文章

    没有相关内容