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

麻烦老师改博易 [博易POBO]

咨询内容:

麻烦老师改博易

G11:=ZIGZAG(C,1,1)>REF(ZIGZAG(C,1,1),1) AND REF(ZIGZAG(C,1,1),1)<=REF(ZIGZAG(C,1,1),2) AND REF(ZIGZAG(C,1,1),2)<=REF(ZIGZAG(C,1,1),3) AND REF(ZIGZAG(C,1,1),3)<=REF(ZIGZAG(C,1,1),4) AND REF(ZIGZAG(C,1,1),4)<=REF(ZIGZAG(C,1,1),5);
X11:=ZIGZAG(C,1,1)<REF(ZIGZAG(C,1,1),1) AND REF(ZIGZAG(C,1,1),1)>=REF(ZIGZAG(C,1,1),2) AND REF(ZIGZAG(C,1,1),2)>=REF(ZIGZAG(C,1,1),3) AND REF(ZIGZAG(C,1,1),3)>=REF(ZIGZAG(C,1,1),4) AND REF(ZIGZAG(C,1,1),4)>=REF(ZIGZAG(C,1,1),5);
DRAWTEXT(G11,L,'底'),COLORYELLOW,DOT,VALIGN1,FONTSIZE30;
DRAWTEXT(X11,H,' 顶'),COLORGREEN,DOT,VALIGN1,FONTSIZE30;
DRAWCOLORKLINE(G11>0 AND G11>X11,COLORYELLOW,0);
DRAWCOLORKLINE(X11>0 AND X11>G11,COLORGREEN,0);



Q1:=BARSLAST(CROSS(REF(ZIGZAG(C,1,1),1),ZIGZAG(C,1,1)))+1;
Q2:=BARSLAST(CROSS(ZIGZAG(C,1,1),REF(ZIGZAG(C,1,1),1)))+1;
AA:=BACKSET(ISLASTBAR,MAX(Q1,Q2));
DRAWTEXT(AA&&CROSS(REF(ZIGZAG(C,1,1),1),ZIGZAG(C,1,1)),HIGH,'★'),VALIGN1,ALIGN0,COLORCYAN,FONTSIZE30;
DRAWTEXT(AA&&CROSS(ZIGZAG(C,1,1),REF(ZIGZAG(C,1,1),1)),LOW,'★'),VALIGN1,ALIGN0,COLORMAGENTA,FONTSIZE30;
DRAWHORIZONTALLINE(AA&&CROSS(REF(ZIGZAG(C,1,1),1),ZIGZAG(C,1,1)),H,COLORGREEN),LINETHICK3;
DRAWHORIZONTALLINE(AA&&CROSS(ZIGZAG(C,1,1),REF(ZIGZAG(C,1,1),1)),L,COLORMAGENTA),LINETHICK3;
DRAWCOLORKLINE(Q1>0 AND Q1>Q2,COLORRED,1);
DRAWCOLORKLINE(Q2>0 AND Q2>Q1,COLORWHITE,1);





/*LL:=VALUEWHEN(G11,L);
HH:=VALUEWHEN(X11,H);
NL:=BARSLAST(G11);
NH:=BARSLAST(X11);
//HH:=HHV(H,60);









DRAWSL1(ISLASTBAR,HH,0,MAX(NL,NH),1),COLORRED,VALIGN1,ALIGN0,LINETHICK2;
DRAWSL1(ISLASTBAR,LL,0,MAX(NL,NH),1),COLORMAGENTA,VALIGN1,ALIGN0,LINETHICK2;
DRAWSL1(ISLASTBAR,LL+0.809*(HH-LL),0,MAX(NL,NH),1),COLOR666666,COLORYELLOW,DOT;
DRAWSL1(ISLASTBAR,LL+0.618*(HH-LL),0,MAX(NL,NH),1),COLOR666666,DOT,COLORMAGENTA,VALIGN1,ALIGN0;
DRAWSL1(ISLASTBAR,LL+0.50*(HH-LL),0,MAX(NL,NH),1),COLOR666666,COLORYELLOW,DOT;
DRAWSL1(ISLASTBAR,LL+0.382*(HH-LL),0,MAX(NL,NH),1),COLOR666666,DOT,COLORYELLOW,VALIGN1,ALIGN0;
DRAWSL1(ISLASTBAR,LL+0.191*(HH-LL),0,MAX(NL,NH),1),COLOR666666,COLORYELLOW,DOT;

DRAWNUMBER1(ISLASTBAR,HH,HH,2),COLORCYAN,ALIGN2;
DRAWNUMBER1(ISLASTBAR,LL,LL,2),COLORMAGENTA,ALIGN2;

DRAWNUMBER1(ISLASTBAR,LL+0.618*(HH-LL),LL+0.618*(HH-LL),2),COLORMAGENTA,ALIGN2;
DRAWNUMBER1(ISLASTBAR,LL+0.382*(HH-LL),LL+0.382*(HH-LL),2),COLORYELLOW,ALIGN2;

DRAWTEXT(ISLASTBAR,HH,'1.000 '),COLORCYAN,VALIGN1,ALIGN0;
DRAWTEXT(ISLASTBAR,LL,'0.000 '),COLORMAGENTA,VALIGN1,ALIGN0;
DRAWTEXT(ISLASTBAR,LL+0.809*(HH-LL),'0.809 '),COLORMAGENTA,VALIGN1,ALIGN0;
DRAWTEXT(ISLASTBAR,LL+0.618*(HH-LL),'0.618 '),COLORMAGENTA,VALIGN1,ALIGN0;
DRAWTEXT(ISLASTBAR,LL+0.50*(HH-LL),'0.50 '),COLORMAGENTA,VALIGN1,ALIGN0;
DRAWTEXT(ISLASTBAR,LL+0.382*(HH-LL),'0.382 '),COLORYELLOW,VALIGN1,ALIGN0;
DRAWTEXT(ISLASTBAR,LL+0.192*(HH-LL),'0.192 '),COLORYELLOW,VALIGN1,ALIGN0;
*/


MA5:=MA(C,5),COLORF00FF0;
MA10:=MA(C,10);

G:=MA5;
DY:=MA10;
NNH:=BARSLAST(H=HHV(H,15)) ,NODRAW;
NNL:=BARSLAST(L=LLV(L,15)) ,NODRAW;
NN:=IF(REF(G,NNH)>REF(DY,NNH) AND NNH<=12,NNH,IF(REF(G,NNL)<REF(DY,NNL) AND NNL<=12,NNL,13)) ,NODRAW;
YN:=IF(ISLASTBAR AND NN>0,NN,13) ,NODRAW;
HHY:=REF(H,YN)=HHV(H,14);
LLY:=REF(L,YN)=LLV(L,14);
FG01:=BACKSET(HHY,YN+1)>BACKSET(HHY,YN),NODRAW;//只设置前面第6个
FD01:=BACKSET(LLY,YN+1)>BACKSET(LLY,YN) ,NODRAW;
FG02:=FG01=FD01 AND G>DY,NODRAW;
FD02:=FG01=FD01 AND G<DY,NODRAW;
TTTT:=BARSLAST(FD01),NODRAW;
FG0:=FG01 AND IF(FG02=1,H=HHV(H,BARSLAST(REF(FD01,1))+1),H=HHV(H,IF(BARSLAST(L=LLV(L,7))>=5,5,BARSLAST(FD01)))) AND FD02=0 ,NODRAW;
FD0:=FD01 AND IF(FD02=1,L=LLV(L,BARSLAST(REF(FG01,1))+1),L=LLV(L,IF(BARSLAST(H=HHV(L,7))>=5,5,BARSLAST(FG01)))) AND FG02=0 ,NODRAW;
GT:=BARSLAST(FG0),NODRAW;
DT:=BARSLAST(FD0),NODRAW;
LLLL:=DT=0 AND REF(DT,1)<GT AND L>REF(L,REF(DT,1)+1),NODRAW;
FG1:=BACKSET(REFX(GT,1)=0 AND GT<DT AND REFX(H,1)>=REF(H,GT),GT+1),NODRAW;
FD1:=BACKSET(REFX(DT,1)=0 AND DT<GT AND REFX(L,1)<=REF(L,DT),DT+1),NODRAW;
FG11:=IF(GT=0 AND REF(GT,1)<DT AND IF(REF(G,BARSLAST(L=LLV(L,7)))>REF(DY,BARSLAST(L=LLV(L,7))),BARSLAST(L=LLV(L,7))<5,1) AND H<REF(H,REF(GT,1)+1),1,0),NODRAW;
FD11:=IF(DT=0 AND REF(DT,1)<GT AND IF(REF(G,BARSLAST(H=HHV(H,7)))<REF(DY,BARSLAST(H=HHV(H,7))),BARSLAST(H=HHV(H,7))<5,1) AND L>REF(L,REF(DT,1)+1),1,0),NODRAW;
GT1:=BARSLAST(FG11<>1 AND FG1<>1 AND FG0),NODRAW;
DT1:=BARSLAST(FD11<>1 AND FD1<>1 AND FD0),NODRAW;
FD2:=BACKSET(REFX(GT1,1)=0 AND DT1<3 AND GT1-DT1<4 AND REF(L,DT1)>LLV(L,GT1+5),DT1+1),NODRAW;
FG2A:=BACKSET(REFX(GT1,1)=0 AND DT1<3 AND GT1-DT1<4 AND REF(L,DT1)<=LLV(L,GT1+5) AND REF(H,GT1)>HHV(H,GT1+5),GT1+1),NODRAW;
FG2B:=IF(GT1=0 AND DT1<4 AND REF(GT1,1)-DT1<4 AND REF(L,DT1)<=LLV(L,REF(GT1,1)+6) AND H>HHV(H,REF(GT1,1)+6),1,0),NODRAW;
FG2:=BACKSET(REFX(DT1,1)=0 AND GT1<3 AND DT1-GT1<4 AND REF(H,GT1)<HHV(H,DT1+5),GT1+1),NODRAW;
FD2A:=BACKSET(REFX(DT1,1)=0 AND GT1<3 AND DT1-GT1<4 AND REF(H,GT1)>=HHV(L,DT1+5) AND REF(L,DT1)>LLV(L,DT1+5),DT1+1),NODRAW;
FD2B:=IF(DT1=0 AND GT1<4 AND REF(DT1,1)-GT1<4 AND REF(H,GT1)>=HHV(H,REF(DT1,1)+6) AND L>LLV(L,REF(DT1,1)+6),1,0),NODRAW;
TTTTTT:= H<REF(H,REF(GT1,1)+1) AND DT1<4,NODRAW;
HHHHHH:=REF(LLV(L,10),DT1),NODRAW;
FG21:=IF(GT1=0 AND DT1<4 AND H<=REF(H,REF(GT1,1)+1) ,1,0),NODRAW;
FD21:=IF(DT1=0 AND GT1<4 AND L>=REF(L,REF(DT1,1)+1) ,1,0),NODRAW;
FD231:=BACKSET(REFX(GT1,1)=0 AND DT1>3 AND GT1>DT1 AND GT1-DT1<4 AND REFX(H,1)>REF(H,GT1) AND REF(L,DT1)>REF(LLV(L,10),DT1),DT1+1),NODRAW;
FG23:=BACKSET(REFX(GT1,1)=0 AND DT1>3 AND GT1>DT1 AND GT1-DT1<4 AND REFX(H,1)>REF(H,GT1) AND (REF(H,GT1)<REF(HHV(H,13),GT1) OR REF(FD231,DT1)=0),GT1+1),NODRAW;
FG231:=BACKSET(REFX(DT1,1)=0 AND GT1>3 AND DT1>GT1 AND DT1-GT1<4 AND REFX(L,1)<REF(L,DT1) AND REF(H,GT1)<REF(HHV(H,10),GT1) ,GT1+1),NODRAW;
FD23:=BACKSET(REFX(DT1,1)=0 AND GT1>3 AND DT1>GT1 AND DT1-GT1<4 AND REFX(L,1)<REF(L,DT1) AND ( REF(L,DT1)>REF(LLV(L,13),DT1) OR REF(FG231,GT1)=0),DT1+1),NODRAW;
FDD23:=REF(H,GT1)<REF(HHV(H,10),GT1) OR REF(FD23,DT1)=0,NODRAW;
FD24:=BACKSET(REFX(GT1,1)=0 AND DT1>3 AND GT1>DT1 AND GT1-DT1<4 AND REFX(H,1)<HHV(H,GT1+3) AND REF(L,DT1)>LLV(L,DT1+5),DT1+1),NODRAW;
FG24:=BACKSET(REFX(DT1,1)=0 AND GT1>3 AND DT1>GT1 AND DT1-GT1<4 AND REFX(L,1)>LLV(L,DT1+3) AND REF(H,GT1)<HHV(H,GT1+5),GT1+1),NODRAW;
GT2:=BARSLAST(FG21<>1 AND FG23<>1 AND FG231<>1 AND FG24<>1 AND FG2<>1 AND FG2A<>1 AND FG2B<>1 AND GT1=0),NODRAW;
DT2:=BARSLAST(FD21<>1 AND FD23<>1 AND FD231<>1 AND FD24<>1 AND FD2<>1 AND FD2A<>1 AND FD2B<>1 AND DT1=0),NODRAW;
FG3:=BACKSET(REFX(GT2,1)=0 AND GT2<DT2 AND REFX(H,1)>=REF(H,GT2),GT2+1),NODRAW;
FD3:=BACKSET(REFX(DT2,1)=0 AND DT2<GT2 AND REFX(L,1)<=REF(L,DT2),DT2+1),NODRAW;
FG31:=IF(GT2=0 AND REF(GT2,1)<DT2 AND H<REF(H,REF(GT2,1)+1),1,0),NODRAW;
FD31:=IF(DT2=0 AND REF(DT2,1)<GT2 AND L>REF(L,REF(DT2,1)+1),1,0),NODRAW;
GT3:=BARSLAST(GT2=0 AND FG3<>1 AND FG31<>1 ),NODRAW;
DT3:=BARSLAST(DT2=0 AND FD3<>1 AND FD31<>1),NODRAW;
FG4:=BACKSET(REFX(GT3,1)=0 AND GT3<DT3 AND REFX(H,1)>=REF(H,GT3),GT3+1),NODRAW;
FD4:=BACKSET(REFX(DT3,1)=0 AND DT3<GT3 AND REFX(L,1)<=REF(L,DT3),DT3+1),NODRAW;
FG41:IF(GT3=0 AND REF(GT3,1)<DT3 AND H<REF(H,REF(GT3,1)+1),1,0),NODRAW,NOTEXT;
FD41:IF(DT3=0 AND REF(DT3,1)<GT3 AND L>REF(L,REF(DT3,1)+1),1,0),NODRAW,NOTEXT;
HHH:=GT3=0 AND FG31<>1 AND FG3<>1,NODRAW;
LLL:=DT3=0 AND FD31<>1 AND FD3<>1,NODRAW;
DX:=HHH||LLL;
L1:=CROSS(BACKSET(ISLASTBAR,SUMBARS(DX,3)),0.5);
L2:=CROSS(BACKSET(ISLASTBAR,SUMBARS(DX,2)),0.5);
L3:=CROSS(BACKSET(ISLASTBAR,SUMBARS(DX,1)),0.5);
PP:=IF(HHH,H,L);
A1:=VALUEWHEN(L1,PP);
A2:=VALUEWHEN(L2,PP);
A3:=VALUEWHEN(L3,PP);
AAA:=REFX1((A2-A1)*0.618+A3,1000);

DRAWTEXT(HHH,H,'空●'),COLORWHITE,FONTSIZE30;
DRAWTEXT(LLL,L,'多●'),COLORWHITE,FONTSIZE30;
DRAWCOLORKLINE(HHH && C>=O&&(HHH||LLL),COLORGREEN,0);
DRAWCOLORKLINE(LLL && C>=O&&(HHH||LLL),COLORFFFF00,0);



H11:VALUEWHEN(HHH,H),NODRAW,NOTEXT;

L4:VALUEWHEN(LLL,L),NODRAW,NOTEXT;

PARTLINE(FG0 ,H,COLORYELLOW),POINTDOT,LINETHICK2,NODRAW;

PARTLINE(FD0 ,L,COLORCYAN),CIRCLEDOT,LINETHICK2,NODRAW;

HHH1:VALUEWHEN(HHH,H),NODRAW,NOTEXT,NODRAW;

LLL1:VALUEWHEN(LLL,L),NODRAW,NOTEXT,NODRAW;

//DRAWNUMBER1(REFX(HHH,1),HHH1,HHH1,2),VALIGN1,ALIGN0,NODRAW;

//DRAWNUMBER1(REFX(LLL,1),LLL1,LLL1,2),VALIGN1,ALIGN0,NODRAW;

T1:=BARSLAST(CROSS(C,HHH1)),NODRAW;

T2:=BARSLAST(CROSSDOWN(C,LLL1)),NODRAW;

M1:=BARSLAST(CROSSDOWN(T1,T2)),NODRAW;

M2:=BARSLAST(CROSS(T1,T2)),NODRAW;

DRAWTEXT(CROSSDOWN(T1,T2),L-3,'突破'),VALIGN0,COLORRED,FONTSIZE20;

DRAWTEXT(CROSS(T1,T2),H+3,'破位'),COLORRED,FONTSIZE20;

DRAWTEXT(HHH&&M1>M2,H,''),VALIGN2,COLORMAGENTA,FONTSIZE15;

DRAWTEXT(LLL&&M1<M2,L,''),VALIGN0,COLORRED,FONTSIZE15;

 

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

博易技术人员: G11:=ZIG(C,1,1)>REF(ZIG(C,1,1),1) AND REF(ZIG(C,1,1),1)<=REF(ZIG(C,1,1),2) AND REF(ZIG(C,1,1),2)<=REF(ZIG(C,1,1),3) AND REF(ZIG(C,1,1),3)<=REF(ZIG(C,1,1),4) AND REF(ZIG(C,1,1),4)<=REF(ZIG(C,1,1),5);
X11:=ZIG(C,1,1)<REF(ZIG(C,1,1),1) AND REF(ZIG(C,1,1),1)>=REF(ZIG(C,1,1),2) AND REF(ZIG(C,1,1),2)>=REF(ZIG(C,1,1),3) AND REF(ZIG(C,1,1),3)>=REF(ZIG(C,1,1),4) AND REF(ZIG(C,1,1),4)>=REF(ZIG(C,1,1),5);
DRAWTEXT(G11,L,'底'),COLORYELLOW,POINTDOT,VALIGN1,FONTSIZE30;
DRAWTEXT(X11,H,' 顶'),COLORGREEN,POINTDOT,VALIGN1,FONTSIZE30;
DRAWKLINEEX(G11>0 AND G11>X11,H,O,L,C),COLORYELLOW;
DRAWKLINEEX(X11>0 AND X11>G11,H,O,L,C),COLORGREEN;



Q1:=BARSLAST(CROSS(REF(ZIG(C,1,1),1),ZIG(C,1,1)))+1;
Q2:=BARSLAST(CROSS(ZIG(C,1,1),REF(ZIG(C,1,1),1)))+1;
AA:=BACKSET(ISLASTBAR,MAX(Q1,Q2));
DRAWTEXT(AA&&CROSS(REF(ZIG(C,1,1),1),ZIG(C,1,1)),HIGH,'★'),VALIGN1,ALIGN0,COLORCYAN,FONTSIZE30;
DRAWTEXT(AA&&CROSS(ZIG(C,1,1),REF(ZIG(C,1,1),1)),LOW,'★'),VALIGN1,ALIGN0,COLORMAGENTA,FONTSIZE30;
DRAWSL(AA&&CROSS(REF(ZIG(C,1,1),1),ZIG(C,1,1)),H,0,0,0),COLORGREEN,LINETHICK3;
DRAWSL(AA&&CROSS(ZIG(C,1,1),REF(ZIG(C,1,1),1)),L,0,0,0),COLORMAGENTA,LINETHICK3;
DRAWKLINEEX(Q1>0 AND Q1>Q2,H,O,L,C),COLORRED;
DRAWKLINEEX(Q2>0 AND Q2>Q1,H,O,L,C),COLORWHITE;








MA5:=MA(C,5),COLORF00FF0;
MA10:=MA(C,10);

G:=MA5;
DY:=MA10;
NNH:=BARSLAST(H=HHV(H,15)) ,NODRAW;
NNL:=BARSLAST(L=LLV(L,15)) ,NODRAW;
NN:=IF(REF(G,NNH)>REF(DY,NNH) AND NNH<=12,NNH,IF(REF(G,NNL)<REF(DY,NNL) AND NNL<=12,NNL,13)) ,NODRAW;
YN:=IF(ISLASTBAR AND NN>0,NN,13) ,NODRAW;
HHY:=REF(H,YN)=HHV(H,14);
LLY:=REF(L,YN)=LLV(L,14);
FG01:=BACKSET(HHY,YN+1)>BACKSET(HHY,YN),NODRAW;//只设置前面第6个
FD01:=BACKSET(LLY,YN+1)>BACKSET(LLY,YN) ,NODRAW;
FG02:=FG01=FD01 AND G>DY,NODRAW;
FD02:=FG01=FD01 AND G<DY,NODRAW;
TTTT:=BARSLAST(FD01),NODRAW;
FG0:=FG01 AND IF(FG02=1,H=HHV(H,BARSLAST(REF(FD01,1))+1),H=HHV(H,IF(BARSLAST(L=LLV(L,7))>=5,5,BARSLAST(FD01)))) AND FD02=0 ,NODRAW;
FD0:=FD01 AND IF(FD02=1,L=LLV(L,BARSLAST(REF(FG01,1))+1),L=LLV(L,IF(BARSLAST(H=HHV(L,7))>=5,5,BARSLAST(FG01)))) AND FG02=0 ,NODRAW;
GT:=BARSLAST(FG0),NODRAW;
DT:=BARSLAST(FD0),NODRAW;
LLLL:=DT=0 AND REF(DT,1)<GT AND L>REF(L,REF(DT,1)+1),NODRAW;
FG1:=BACKSET(REFX(GT,1)=0 AND GT<DT AND REFX(H,1)>=REF(H,GT),GT+1),NODRAW;
FD1:=BACKSET(REFX(DT,1)=0 AND DT<GT AND REFX(L,1)<=REF(L,DT),DT+1),NODRAW;
FG11:=IF(GT=0 AND REF(GT,1)<DT AND IF(REF(G,BARSLAST(L=LLV(L,7)))>REF(DY,BARSLAST(L=LLV(L,7))),BARSLAST(L=LLV(L,7))<5,1) AND H<REF(H,REF(GT,1)+1),1,0),NODRAW;
FD11:=IF(DT=0 AND REF(DT,1)<GT AND IF(REF(G,BARSLAST(H=HHV(H,7)))<REF(DY,BARSLAST(H=HHV(H,7))),BARSLAST(H=HHV(H,7))<5,1) AND L>REF(L,REF(DT,1)+1),1,0),NODRAW;
GT1:=BARSLAST(FG11<>1 AND FG1<>1 AND FG0),NODRAW;
DT1:=BARSLAST(FD11<>1 AND FD1<>1 AND FD0),NODRAW;
FD2:=BACKSET(REFX(GT1,1)=0 AND DT1<3 AND GT1-DT1<4 AND REF(L,DT1)>LLV(L,GT1+5),DT1+1),NODRAW;
FG2A:=BACKSET(REFX(GT1,1)=0 AND DT1<3 AND GT1-DT1<4 AND REF(L,DT1)<=LLV(L,GT1+5) AND REF(H,GT1)>HHV(H,GT1+5),GT1+1),NODRAW;
FG2B:=IF(GT1=0 AND DT1<4 AND REF(GT1,1)-DT1<4 AND REF(L,DT1)<=LLV(L,REF(GT1,1)+6) AND H>HHV(H,REF(GT1,1)+6),1,0),NODRAW;
FG2:=BACKSET(REFX(DT1,1)=0 AND GT1<3 AND DT1-GT1<4 AND REF(H,GT1)<HHV(H,DT1+5),GT1+1),NODRAW;
FD2A:=BACKSET(REFX(DT1,1)=0 AND GT1<3 AND DT1-GT1<4 AND REF(H,GT1)>=HHV(L,DT1+5) AND REF(L,DT1)>LLV(L,DT1+5),DT1+1),NODRAW;
FD2B:=IF(DT1=0 AND GT1<4 AND REF(DT1,1)-GT1<4 AND REF(H,GT1)>=HHV(H,REF(DT1,1)+6) AND L>LLV(L,REF(DT1,1)+6),1,0),NODRAW;
TTTTTT:= H<REF(H,REF(GT1,1)+1) AND DT1<4,NODRAW;
HHHHHH:=REF(LLV(L,10),DT1),NODRAW;
FG21:=IF(GT1=0 AND DT1<4 AND H<=REF(H,REF(GT1,1)+1) ,1,0),NODRAW;
FD21:=IF(DT1=0 AND GT1<4 AND L>=REF(L,REF(DT1,1)+1) ,1,0),NODRAW;
FD231:=BACKSET(REFX(GT1,1)=0 AND DT1>3 AND GT1>DT1 AND GT1-DT1<4 AND REFX(H,1)>REF(H,GT1) AND REF(L,DT1)>REF(LLV(L,10),DT1),DT1+1),NODRAW;
FG23:=BACKSET(REFX(GT1,1)=0 AND DT1>3 AND GT1>DT1 AND GT1-DT1<4 AND REFX(H,1)>REF(H,GT1) AND (REF(H,GT1)<REF(HHV(H,13),GT1) OR REF(FD231,DT1)=0),GT1+1),NODRAW;
FG231:=BACKSET(REFX(DT1,1)=0 AND GT1>3 AND DT1>GT1 AND DT1-GT1<4 AND REFX(L,1)<REF(L,DT1) AND REF(H,GT1)<REF(HHV(H,10),GT1) ,GT1+1),NODRAW;
FD23:=BACKSET(REFX(DT1,1)=0 AND GT1>3 AND DT1>GT1 AND DT1-GT1<4 AND REFX(L,1)<REF(L,DT1) AND ( REF(L,DT1)>REF(LLV(L,13),DT1) OR REF(FG231,GT1)=0),DT1+1),NODRAW;
FDD23:=REF(H,GT1)<REF(HHV(H,10),GT1) OR REF(FD23,DT1)=0,NODRAW;
FD24:=BACKSET(REFX(GT1,1)=0 AND DT1>3 AND GT1>DT1 AND GT1-DT1<4 AND REFX(H,1)<HHV(H,GT1+3) AND REF(L,DT1)>LLV(L,DT1+5),DT1+1),NODRAW;
FG24:=BACKSET(REFX(DT1,1)=0 AND GT1>3 AND DT1>GT1 AND DT1-GT1<4 AND REFX(L,1)>LLV(L,DT1+3) AND REF(H,GT1)<HHV(H,GT1+5),GT1+1),NODRAW;
GT2:=BARSLAST(FG21<>1 AND FG23<>1 AND FG231<>1 AND FG24<>1 AND FG2<>1 AND FG2A<>1 AND FG2B<>1 AND GT1=0),NODRAW;
DT2:=BARSLAST(FD21<>1 AND FD23<>1 AND FD231<>1 AND FD24<>1 AND FD2<>1 AND FD2A<>1 AND FD2B<>1 AND DT1=0),NODRAW;
FG3:=BACKSET(REFX(GT2,1)=0 AND GT2<DT2 AND REFX(H,1)>=REF(H,GT2),GT2+1),NODRAW;
FD3:=BACKSET(REFX(DT2,1)=0 AND DT2<GT2 AND REFX(L,1)<=REF(L,DT2),DT2+1),NODRAW;
FG31:=IF(GT2=0 AND REF(GT2,1)<DT2 AND H<REF(H,REF(GT2,1)+1),1,0),NODRAW;
FD31:=IF(DT2=0 AND REF(DT2,1)<GT2 AND L>REF(L,REF(DT2,1)+1),1,0),NODRAW;
GT3:=BARSLAST(GT2=0 AND FG3<>1 AND FG31<>1 ),NODRAW;
DT3:=BARSLAST(DT2=0 AND FD3<>1 AND FD31<>1),NODRAW;
FG4:=BACKSET(REFX(GT3,1)=0 AND GT3<DT3 AND REFX(H,1)>=REF(H,GT3),GT3+1),NODRAW;
FD4:=BACKSET(REFX(DT3,1)=0 AND DT3<GT3 AND REFX(L,1)<=REF(L,DT3),DT3+1),NODRAW;
FG41:IF(GT3=0 AND REF(GT3,1)<DT3 AND H<REF(H,REF(GT3,1)+1),1,0),NODRAW;
FD41:IF(DT3=0 AND REF(DT3,1)<GT3 AND L>REF(L,REF(DT3,1)+1),1,0),NODRAW;
HHH:=GT3=0 AND FG31<>1 AND FG3<>1,NODRAW;
LLL:=DT3=0 AND FD31<>1 AND FD3<>1,NODRAW;
DX:=HHH||LLL;
L1:=CROSS(BACKSET(ISLASTBAR,SUMBARS(DX,3)),0.5);
L2:=CROSS(BACKSET(ISLASTBAR,SUMBARS(DX,2)),0.5);
L3:=CROSS(BACKSET(ISLASTBAR,SUMBARS(DX,1)),0.5);
PP:=IF(HHH,H,L);
A1:=VALUEWHEN(L1,PP);
A2:=VALUEWHEN(L2,PP);
A3:=VALUEWHEN(L3,PP);
AAA:=REFX((A2-A1)*0.618+A3,DATACOUNT-BARPOS);

DRAWTEXT(HHH,H,'空●'),COLORWHITE,FONTSIZE30;
DRAWTEXT(LLL,L,'多●'),COLORWHITE,FONTSIZE30;
DRAWKLINEEX(HHH && C>=O&&(HHH||LLL),H,O,L,C),COLORGREEN;
DRAWKLINEEX(LLL && C>=O&&(HHH||LLL),H,O,L,C),COLORFFFF00;



H11:VALUEWHEN(HHH,H),NODRAW;

L4:VALUEWHEN(LLL,L),NODRAW;

PARTLINE(FG0 ,H),COLORYELLOW,POINTDOT,LINETHICK2,NODRAW;

PARTLINE(FD0 ,L),COLORCYAN,CIRCLEDOT,LINETHICK2,NODRAW;

HHH1:VALUEWHEN(HHH,H),NODRAW,NODRAW;

LLL1:VALUEWHEN(LLL,L),NODRAW,NODRAW;

//DRAWNUMBER1(REFX(HHH,1),HHH1,HHH1,2),VALIGN1,ALIGN0,NODRAW;

//DRAWNUMBER1(REFX(LLL,1),LLL1,LLL1,2),VALIGN1,ALIGN0,NODRAW;

T1:=BARSLAST(CROSS(C,HHH1)),NODRAW;

T2:=BARSLAST(CROSS(LLL1,C)),NODRAW;

M1:=BARSLAST(CROSS(T2,T1)),NODRAW;

M2:=BARSLAST(CROSS(T1,T2)),NODRAW;

DRAWTEXT(CROSS(T2,T1),L-3,'突破'),VALIGN0,COLORRED,FONTSIZE20;

DRAWTEXT(CROSS(T1,T2),H+3,'破位'),COLORRED,FONTSIZE20;

DRAWTEXT(HHH&&M1>M2,H,''),VALIGN2,COLORMAGENTA,FONTSIZE15;

DRAWTEXT(LLL&&M1<M2,L,''),VALIGN0,COLORRED,FONTSIZE15; 来源 程序化久久网

 

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

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

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

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


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

相关文章

    没有相关内容