联系方式 Contact

云指标公式网

淘宝:zb-mart.taobao.com

电话:18020657357

微信:18020657357

Q Q:396950280

点击这里给我发消息

网址:www.yzhibiao.com

搜索 Search

K线波浪再优化---K线做波浪,劳逸结合

2016-6-28 21:02:19点击:

 必买:=IF(TROUGHBARS(3,15,1)=0 AND HIGH>LOW+0.01,CLOSE,0),NODRAW;

必卖:=IF(PEAKBARS(3,15,1)=1,CLOSE,0),NODRAW;
DRAWICON(必买=CLOSE,L-0.01,"buy ");
DRAWICON(必卖=CLOSE,H,"sell");
DRAWTEXT(必买=CLOSE,LOW* 0.99,'——起涨点'),colormagenta;
DRAWTEXT(必卖=CLOSE,H* 1.02,'----逃顶点'),colorgreen;
STICKLINE(必卖 AND CLOSE<OPEN,OPEN,CLOSE,10,2),colorgreen;
STICKLINE(必卖 AND CLOSE>=OPEN,OPEN,CLOSE,10,2),colorred;
STICKLINE(必卖,OPEN,CLOSE,10,0),colorgreen;
STICKLINE(必卖 ,LOW,HIGH,4,0),colorgreen;
STICKLINE(必买 AND CLOSE<OPEN,OPEN,CLOSE,10,2),colorcyan;
STICKLINE(必买 AND CLOSE>=OPEN,OPEN,CLOSE,10,2),colorred;
STICKLINE(必买,OPEN,CLOSE,9,0),colorwhite;
STICKLINE(必买,LOW,HIGH,4,0),color00009C;
STICKLINE(COUNT(必卖=CLOSE,BARSLAST(必买=CLOSE))=0 AND CLOSE>=OPEN,OPEN,CLOSE,10,0),colorred;
STICKLINE(COUNT(必卖=CLOSE,BARSLAST(必买=CLOSE))=0 AND CLOSE>=OPEN,OPEN,LOW,0,0),colorred;
STICKLINE(COUNT(必卖=CLOSE,BARSLAST(必买=CLOSE))=0 AND CLOSE>=OPEN,CLOSE,HIGH,0,0),colorred;
STICKLINE(COUNT(必卖=CLOSE,BARSLAST(必买=CLOSE))=0 AND CLOSE<OPEN,OPEN,CLOSE,10,0),colorcyan;
STICKLINE(COUNT(必卖=CLOSE,BARSLAST(必买=CLOSE))=0 AND CLOSE<OPEN,LOW,HIGH,2,0),colorcyan;
STICKLINE(COUNT(必卖=CLOSE,BARSLAST(必买=CLOSE))=0 AND CLOSE<OPEN,OPEN,CLOSE,6,1),colorwhite;
STICKLINE(COUNT(必买=CLOSE,BARSLAST(必卖=CLOSE))=0 AND CLOSE<=OPEN,OPEN,CLOSE,10,0),colorcyan;
STICKLINE(COUNT(必买=CLOSE,BARSLAST(必卖=CLOSE))=0 AND CLOSE<=OPEN,LOW,HIGH,2,0),colorcyan;
STICKLINE(COUNT(必买=CLOSE,BARSLAST(必卖=CLOSE))=0 AND CLOSE>OPEN,OPEN,CLOSE,7,0),colorcyan;
STICKLINE(COUNT(必买=CLOSE,BARSLAST(必卖=CLOSE))=0 AND CLOSE>OPEN,OPEN,CLOSE,10,1),colorcyan;
STICKLINE(COUNT(必买=CLOSE,BARSLAST(必卖=CLOSE))=0 AND CLOSE>OPEN,LOW,HIGH,2,0),colorred;
STICKLINE(BARSLAST(必买=CLOSE)=BARSLAST(必卖=CLOSE) AND CLOSE>=OPEN,OPEN,CLOSE,10,1),colorblue;
STICKLINE(BARSLAST(必买=CLOSE)=BARSLAST(必卖=CLOSE) AND CLOSE>=OPEN,OPEN,LOW,0,0),colorblue;
STICKLINE(BARSLAST(必买=CLOSE)=BARSLAST(必卖=CLOSE) AND CLOSE>=OPEN,CLOSE,HIGH,0,0),colorblue;
STICKLINE(BARSLAST(必买=CLOSE)=BARSLAST(必卖=CLOSE) AND CLOSE<OPEN,OPEN,CLOSE,10,0),colorblue;
STICKLINE(BARSLAST(必买=CLOSE)=BARSLAST(必卖=CLOSE) AND CLOSE<OPEN,LOW,HIGH,0,0),colorblue;
MA25:MA(C,25),POINTDOT,colorred;
PARTLINE(MA25,MA25>REF(MA25,1),RGB(165,40,20),MA25<REF(MA25,1),RGB(20,185,25)),LINETHICK2;
MA55:=MA(CLOSE,55),coloryellow,LINETHICK1;
MA14:MA(C,14),colorred,POINTDOT,LINETHICK1;
MA3:=MA(CLOSE,3),coloryellow,LINETHICK2;
MA5:=MA(CLOSE,5),coloryellow,LINETHICK2;
PARTLINE(MA14,MA14>REF(MA14,1),RGB(255,20,0),MA14<REF(MA14,1),RGB(00,255,45)),LINETHICK2;
GET:=ZIG(3,5),POINTDOT,colorred;
PARTLINE(GET,GET>REF(GET,1),RGB(255,85,5),GET),color2F4F2F,LINETHICK3;
VAR3:=LLV(HIGH,240);
VAR4:=100*(CLOSE-VAR3)/VAR3;
VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;
VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;
VAR7:=0;
VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;
VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;
VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);
VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
VAR12:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);
VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
VAR14:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);
VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
VAR16:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);
VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);
VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);
VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);
买1:=VAR10;
买2:=(VAR11+VAR13+VAR15+VAR17);
卖1:=(VAR12+VAR14+VAR16+VAR18);
B线:IF(买1>0 OR 买2>0,LOW*0.99,DRAWNULL),CROSSDOT,LINETHICK3,coloryellow;
S线:IF(卖1>0,HIGH*1.01,DRAWNULL),CROSSDOT,LINETHICK3,colorcyan;
MA135:=MA(VOL,135); TJ1:=VOL=HHV(VOL,10) AND VOL>1.7*REF(VOL,1) AND C>=REF(C,1) AND C>=O AND VOL<=MA135*3.5; LJL:=FILTER(TJ1,3);
TJ3:=IF(BARSLAST(LJL)=1 AND CLOSE>REF(LOW,3),1,0); ST:=TJ3=1;
CL:=FILTER(ST,3);
STICKLINE(C,REF(L,BARSLAST(CL)),REF(L,BARSLAST(CL)),2,0),coloryellow; STICKLINE(CLOSE,REF(L,BARSLAST(LJL)),REF(L,BARSLAST(LJL)),2,0),colorcyan;
STICKLINE(LJL,OPEN,CLOSE,5,0),coloryellow; DRAWTEXT(LJL,L*0.99,'支撑'),COLORF00FF0;
A:=EMA(C,14),colorwhite,LINETHICK1;
B:=(A-REF(A,1))/REF(A,1)*100,NODRAW;
支撑:IF(B>=0,REF(EMA(C,14),BARSLAST(CROSS(B,0))+1),DRAWNULL),colorblue,LINETHICK2;
阻力:IF(B<0,REF(EMA(C,14),BARSLAST(CROSS(0,B))+1),DRAWNULL),colorgreen,LINETHICK2;
DRAWGBK(GET>REF(GET,1),STRIP(RGB(60,100,255),RGB(180,180,255),1));
DRAWGBK(买1>0 OR 买2>0,STRIP(RGB(180,180,255),RGB(180,80,25),1));
A:=(O+C)/2;
Y3:=REF(A,3);
STICKLINE(Y3 AND C>MA3 ,A,A,10,1),colorwhite;