财运亨通波段
2016-7-31 11:32:20点击:
主力仓位两线从顶到底为一个波段。结合MC1、MC2从底到顶及金叉、死叉综合判断,具有较高的准确率。
//F1:=ZIG(3,15);
//长方向:IF((F1> REF(F1,1)),6,94),colorred,LINETHICK2;
F11:=ZIG(3,10);
中方向:IF((F11> REF(F11,1)),10,90),COLOR00FF00,LINETHICK2;
Z6:ZIG(3,6),NODRAW;
短方向1:IF((Z6> REF(Z6,1)),14,86),colorligreen,LINETHICK1;
RR8:=MA(CLOSE,26);
RR9:=(CLOSE-RR8)/RR8*100;
RRA:=MA(RR9,2);
RRB:=BARSLAST(CROSS(-10,RRA)=1);
RRD:=RRA<-17 AND RRB>3;
//【黄金坑】:IF(RRD,38,50),coloryellow,LINETHICK1;
C0:=(H+L+C)/3;
C1:=HHV(C0,5);
C2:=LLV(C0,5);
C4:=EMA((C0-C2)/(C1-C2),8)*100;
中短期:=C4,colormagenta,linethick1;//kdj算法;
WY1001:=(2*CLOSE+HIGH+LOW)/4;
WY1002:=EMA(WY1001,4);
//WY1003:=EMA(WY1002,4);
WY1004:=EMA(WY1002,4);
XYS0:(WY1004-REF(WY1004,1))/REF(WY1004,1)*100,NODRAW;
MC2:MA(XYS0,2)*13+40,colorligreen;
MC1:MA(XYS0,1)*13+40,colorred;
//DRAWBS
DRAWICON(CROSS(MC1,MC2),MC2,1);
DRAWICON(CROSS(MC2,MC1),MC2,2);
//卖出: IF(CROSS(MC2,MC1),90,100),colorligreen;
//买进: IF(CROSS(MC1,MC2),10,0),colorred;
A1:=BARSLAST(REF(CROSS(MC1,MC2),1));
底背离:=C<REF(C,A1+1) AND MC1>REF(MC1,A1+1) AND CROSS(MC1,MC2),colorred,LINETHICK2;
DRAWLINE(A1=0,MC2,底背离,MC2,0),colorred,LINETHICK2;
DRAWTEXT(底背离,REF(MC1,A1)*0.98+1.5,'底背离'),colorred,LINETHICK1;
A2:=BARSLAST(REF(CROSS(MC2,MC1),1));
顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(MC2,A2+1)>MC2 AND CROSS(MC2,MC1);
DRAWLINE(A2=0,MC2,顶背离,MC2,0),colorgreen,LINETHICK2;
DRAWTEXT(顶背离,REF(MC2,A2)*1.1,'顶背离'),colorligreen;
VAR3:=MA(CLOSE,13);
VAR4:=100-ABS((CLOSE-VAR3)/VAR3*100);
VAR5:=LLV(LOW,75);
VAR6:=HHV(HIGH,75);
VAR7:=(VAR6-VAR5)/100;
VAR8:=SMA((CLOSE-VAR5)/VAR7,10,1);
VAR9:=SMA((OPEN-VAR5)/VAR7,10,1);
VARA:=3*VAR8-2*SMA(VAR8,10,1);
VARB:=3*VAR9-2*SMA(VAR9,10,1);
VARC:=100-VARB;
主力仓位:(100-VARA)*1,colorred,LINETHICK2;//
VAR81:=SMA((CLOSE-VAR5)/VAR7,7,1);
VAR91:=SMA((OPEN-VAR5)/VAR7,7,1);
VARA1:=3*VAR81-2*SMA(VAR81,7,1);
VARB1:=3*VAR91-2*SMA(VAR91,7,1);
VARC1:=100-VARB1;
主力仓位1: (100-VARA1)*1,colorlired,LINETHICK1;