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

老师这个指标咋压缩了 [博易POBO]

咨询内容:

老师这个指标咋压缩了

老师这个指标中,连接斜线的横线,能向右延长一些吗

VAR10:=CLOSE-LOW;
 VAR20:=HIGH-LOW;
 VAR3:=CLOSE-HIGH;
 VAR4:=IF(HIGH>LOW,(VAR10/VAR20+VAR3/VAR20)*VOL,0);
 HPTP:=SUM(VAR4,10)/10000,COLORSTICK;
 DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
 DEA:=EMA(DIF,9);
 TKXL:=(DIF-DEA)*2;
 XVYO:=COUNT(TKXL>REF(TKXL,1),2)=2;
 HH10:=REF(H,5)=HHV(H,11);
 LL10:=REF(L,5)=LLV(L,11);
 FG01:=BACKSET(HH10,6)>BACKSET(HH10,5);
 FD01:=BACKSET(LL10,6)>BACKSET(LL10,5);
 STICKLINE(V/REF(V,1)>2,OPEN,CLOSE,1,0),COLOR00FFFF;
 FG02:=IF(BARSLAST(FG01)=BARSLAST(FD01) AND MA(C,5)>MA(C,10),FG01,IF(BARSLAST(FD01)>BARSLAST(FG01),FG01,0));
 FD02:=IF(BARSLAST(FG01)=BARSLAST(FD01) AND MA(C,10)>MA(C,5),FD01,IF(BARSLAST(FG01)>BARSLAST(FD01),FD01,0));
 FG0:=FG02 AND H=HHV(H,BARSLAST(FD02));
 FD0:=FD02 AND L=LLV(L,BARSLAST(FG02));
 GQ:=L>REF(H,1) AND DAY!=REF(DAY,1);
 DQ:=H<REF(L,1) AND DAY!=REF(DAY,1);
 FGH:=REF(H,BARSLAST(FG0));
 FGL:=REF(L,BARSLAST(FG0));
 FGH1:=REF(H,BARSLAST(FG0)+1);
 FGL1:=REF(L,BARSLAST(FG0)+1);
 FGL2:=REF(L,BARSLAST(FG0)+2);
 FDH2:=REF(H,BARSLAST(FD0)+2);
 FDH:=REF(H,BARSLAST(FD0));
 FDL:=REF(L,BARSLAST(FD0));
 FDH1:=REF(H,BARSLAST(FD0)+1);
 FDL1:=REF(L,BARSLAST(FD0)+1);
 FGZL:=IF(FGH1<FGL,FGL,IF(FGL<=FGL1,FGL2,FGL1));
 FDZH:=IF(FDL1>FDH,FDH,IF(FDH>=FDH1,FDH2,FDH1));
 FG1:=FGH>FDZH AND FG0;
 FD1:=FDL<FGZL AND FD0;
 FG:=FG1 AND FGH>FDH AND FGL>FDL AND FGL1>FDL;
 FD:=FD1 AND FDL<FGL AND FDH<FGH AND FDH1<FGH;
 BH0:=(H<=REF(H,1) AND L>=REF(L,1)) OR (H>=REF(H,1) AND L<=REF(L,1));
 BHG:=COUNT(BH0,BARSLAST(FD0));
 BHD:=COUNT(BH0,BARSLAST(FG0));
 BGQ:=COUNT(GQ,BARSLAST(FD0));
 BDQ:=COUNT(DQ,BARSLAST(FG0));
 BK0:=IF(BHG>0,BHG+2,IF(BHD,BHD+2,3));
 BK1:=IF(BGQ,BK0-BGQ,IF(BDQ,BK0-BDQ,BK0));
 G1X:=(FG AND BARSLAST(FD)>BK1);
 D1X:=(FD AND BARSLAST(FG)>BK1);
 G1:=(FG0 AND REF(H,BARSLAST(FG0))>=REF(H,BARSLAST(G1X)) AND BARSLAST(D1X)>BARSLAST(G1X))
 OR (FG1 AND COUNT(GQ,BARSLAST(FD1))>0 AND REF(H,BARSLAST(FG1))>REF(H,BARSLAST(G1X)));
 D1:=(FD0 AND REF(L,BARSLAST(FD0))<=REF(L,BARSLAST(D1X)) AND BARSLAST(G1X)>BARSLAST(D1X))
 OR (FD1 AND COUNT(DQ,BARSLAST(FG1))>0 AND REF(L,BARSLAST(FD1))<REF(H,BARSLAST(D1X)));
 G1H:=IF(BARSLAST(D1)>BARSLAST(G1),REF(H,BARSLAST(G1)),REF(H,BARSLAST(D1)));
 D1L:=IF(BARSLAST(G1)>BARSLAST(D1),REF(L,BARSLAST(D1)),REF(L,BARSLAST(G1)));
 G2:=G1 AND H=HHV(G1H,BARSLAST(D1)+1) AND H>REF(H,1) AND BARSLAST(D1)>BARSLAST(G1);
 D2:=D1 AND L=LLV(D1L,BARSLAST(G1)+1) AND L<REF(L,1) AND BARSLAST(G1)>BARSLAST(D1);
 NN0:=G2 OR (FG0 AND REF(H,BARSLAST(FG0))>REF(H,BARSLAST(G2)) AND BARSLAST(D2)>BARSLAST(G2));
 UU:=D2 OR (FD0 AND REF(L,BARSLAST(FD0))<REF(L,BARSLAST(D2)) AND BARSLAST(G2)>BARSLAST(D2));
 DRAWLINE(UU,L,NN0,H,0),COLORYELLOW;
 DRAWLINE(NN0,H,UU,L,0),COLORWHITE,POINTDOT;
 DRAWLINE(NN0,H,REF(NN0,1),REF(H,1),0),COLORFFCC00,LINETHICK5;
 DRAWLINE(UU,L,REF(UU,1),REF(L,1),0),COLORRED,LINETHICK5;
 DRAWNUMBER(UU,L*0.995,L,2);
 DRAWNUMBER(NN0,H*1.01,H,2); 
 

 

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

博易技术人员: VAR10:=CLOSE-LOW;
 VAR20:=HIGH-LOW;
 VAR3:=CLOSE-HIGH;
 VAR4:=IF(HIGH>LOW,(VAR10/VAR20+VAR3/VAR20)*VOL,0);
 HPTP:=SUM(VAR4,10)/10000,COLORSTICK;
 DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
 DEA:=EMA(DIF,9);
 TKXL:=(DIF-DEA)*2;
 XVYO:=COUNT(TKXL>REF(TKXL,1),2)=2;
 HH10:=REF(H,5)=HHV(H,11);
 LL10:=REF(L,5)=LLV(L,11);
 FG01:=BACKSET(HH10,6)>BACKSET(HH10,5);
 FD01:=BACKSET(LL10,6)>BACKSET(LL10,5);
 STICKLINE(V/REF(V,1)>2,OPEN,CLOSE,1,0),COLOR00FFFF;
 FG02:=IF(BARSLAST(FG01)=BARSLAST(FD01) AND MA(C,5)>MA(C,10),FG01,IF(BARSLAST(FD01)>BARSLAST(FG01),FG01,0));
 FD02:=IF(BARSLAST(FG01)=BARSLAST(FD01) AND MA(C,10)>MA(C,5),FD01,IF(BARSLAST(FG01)>BARSLAST(FD01),FD01,0));
 FG0:=FG02 AND H=HHV(H,BARSLAST(FD02));
 FD0:=FD02 AND L=LLV(L,BARSLAST(FG02));
 GQ:=L>REF(H,1) AND DAY!=REF(DAY,1);
 DQ:=H<REF(L,1) AND DAY!=REF(DAY,1);
 FGH:=REF(H,BARSLAST(FG0));
 FGL:=REF(L,BARSLAST(FG0));
 FGH1:=REF(H,BARSLAST(FG0)+1);
 FGL1:=REF(L,BARSLAST(FG0)+1);
 FGL2:=REF(L,BARSLAST(FG0)+2);
 FDH2:=REF(H,BARSLAST(FD0)+2);
 FDH:=REF(H,BARSLAST(FD0));
 FDL:=REF(L,BARSLAST(FD0));
 FDH1:=REF(H,BARSLAST(FD0)+1);
 FDL1:=REF(L,BARSLAST(FD0)+1);
 FGZL:=IF(FGH1<FGL,FGL,IF(FGL<=FGL1,FGL2,FGL1));
 FDZH:=IF(FDL1>FDH,FDH,IF(FDH>=FDH1,FDH2,FDH1));
 FG1:=FGH>FDZH AND FG0;
 FD1:=FDL<FGZL AND FD0;
 FG:=FG1 AND FGH>FDH AND FGL>FDL AND FGL1>FDL;
 FD:=FD1 AND FDL<FGL AND FDH<FGH AND FDH1<FGH;
 BH0:=(H<=REF(H,1) AND L>=REF(L,1)) OR (H>=REF(H,1) AND L<=REF(L,1));
 BHG:=COUNT(BH0,BARSLAST(FD0));
 BHD:=COUNT(BH0,BARSLAST(FG0));
 BGQ:=COUNT(GQ,BARSLAST(FD0));
 BDQ:=COUNT(DQ,BARSLAST(FG0));
 BK0:=IF(BHG>0,BHG+2,IF(BHD,BHD+2,3));
 BK1:=IF(BGQ,BK0-BGQ,IF(BDQ,BK0-BDQ,BK0));
 G1X:=(FG AND BARSLAST(FD)>BK1);
 D1X:=(FD AND BARSLAST(FG)>BK1);
 G1:=(FG0 AND REF(H,BARSLAST(FG0))>=REF(H,BARSLAST(G1X)) AND BARSLAST(D1X)>BARSLAST(G1X))
 OR (FG1 AND COUNT(GQ,BARSLAST(FD1))>0 AND REF(H,BARSLAST(FG1))>REF(H,BARSLAST(G1X)));
 D1:=(FD0 AND REF(L,BARSLAST(FD0))<=REF(L,BARSLAST(D1X)) AND BARSLAST(G1X)>BARSLAST(D1X))
 OR (FD1 AND COUNT(DQ,BARSLAST(FG1))>0 AND REF(L,BARSLAST(FD1))<REF(H,BARSLAST(D1X)));
 G1H:=IF(BARSLAST(D1)>BARSLAST(G1),REF(H,BARSLAST(G1)),REF(H,BARSLAST(D1)));
 D1L:=IF(BARSLAST(G1)>BARSLAST(D1),REF(L,BARSLAST(D1)),REF(L,BARSLAST(G1)));
 G2:=G1 AND H=HHV(G1H,BARSLAST(D1)+1) AND H>REF(H,1) AND BARSLAST(D1)>BARSLAST(G1);
 D2:=D1 AND L=LLV(D1L,BARSLAST(G1)+1) AND L<REF(L,1) AND BARSLAST(G1)>BARSLAST(D1);
 NN0:=G2 OR (FG0 AND REF(H,BARSLAST(FG0))>REF(H,BARSLAST(G2)) AND BARSLAST(D2)>BARSLAST(G2));
 UU:=D2 OR (FD0 AND REF(L,BARSLAST(FD0))<REF(L,BARSLAST(D2)) AND BARSLAST(G2)>BARSLAST(D2));
 DRAWLINE(UU,L,NN0,H,0),COLORYELLOW;
 DRAWLINE(NN0,H,UU,L,0),COLORWHITE,POINTDOT;
 DRAWLINE(NN0,H,REF(NN0,1),REF(H,1),0),COLORFFCC00,LINETHICK5;
 DRAWLINE(UU,L,REF(UU,1),REF(L,1),0),COLORRED,LINETHICK5;
DRAWSL(NN0,H,0,5,0),COLORFFCC00,LINETHICK5;
DRAWSL(UU,L,0,5,0),COLORRED,LINETHICK5;

 DRAWNUMBER(UU,L*0.995,L,2);
 DRAWNUMBER(NN0,H*1.01,H,2);  谢谢老师,指标显示还压缩 来源 程序化久久网

 

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

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

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

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


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

相关文章

    没有相关内容