本人将支撑阻力线和甘氏线叠加使用,效果很好。加仓减仓点十分明确。买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
STICKLINE(买线>=卖线,REFDATE(HHV(H,256),DATE),REFDATE(LLV(L,256),DATE),5,0),COLOR600020;
STICKLINE(买线<卖线,REFDATE(HHV(H,256),DATE),REFDATE(LLV(L,256),DATE),5,0),COLOR404050;
DRAWKLINE(H,O,L,C);
S:=LLV(C,500);
AA:=YEAR*100+MONTH>年月;
BB:=(AA=0)+1;
P1:=(C-REF(C,1))/REF(C,1)*1000;
P2:=SUM(ABS(P1),0);
P3:=COUNT(C>0,0);
K1:=P2/P3;
A1:=ZIG(3 , N2);
AA1:=A1>REF(A1,1);
A2:=ZIG(2,N2);
AA2:=A2<REF(A2,1);
K2:=K1*0.8;
B1:=HHVBARS(A1,30);
B2:=LLVBARS(A2,30);
Z:DRAWLINE(C=A1*BB AND AA1>0,C,B1=10 ,REF(C,B1)-S*K1/下降角度,1),COLOR33FFCC;
Z1:DRAWLINE(C=A1*BB AND AA1>0,C,B1=10 ,REF(C,B1)-S*2*K1/下降角度,1),COLOR6666FF,LINETHICK2;
Z2:DRAWLINE(C=A1*BB AND AA1>0,C,B1=10 ,REF(C,B1)-S*4*K1/下降角度,1),COLORFFFFCC;
Z3:DRAWLINE(C=A1*BB AND AA1>0,C,B1=10 ,REF(C,B1)-S*8*K1/下降角度,1),COLOR00CCFF;
Z4:DRAWLINE(C=A1*BB AND AA1>0,C,B1=10 ,REF(C,B1)-S*0.4*K1/下降角度,1),COLOR00FF00;
Z5:DRAWLINE(L=A2*AA AND AA2>0,L,B2=10 ,REF(L,B2)+S*8*K1/上升角度*2,0),COLOR33FFCC;
Z6:DRAWLINE(L=A2*AA AND AA2>0,L,B2=10 ,REF(L,B2)+S*K1/上升角度*2,1),COLOR00CCFF;
Z7:DRAWLINE(L=A2*AA AND AA2>0,L,B2=10 ,REF(L,B2)+S*2*K1/上升角度*2,1),COLOR6666FF,LINETHICK2;
Z8:DRAWLINE(L=A2*AA AND AA2>0,L,B2=10 ,REF(L,B2)+S*4*K1/上升角度*2,1),COLORFFFFCC;
Z9:DRAWLINE(L=A2*AA AND AA2>0,L,B2=10 ,REF(L,B2)+S*0.5*K1/上升角度*2,1),COLORFF00FF;
长压:=DRAWLINE(C=HHV(C,60),HHV(H,3),C=HHV(C,30) AND C<HHV(C,45),HHV(HIGH,3),1),COLORYELLOW,LINETHICK2;
中压:DRAWLINE(HIGH>=HHV(HIGH,30),HIGH,LOW<=LLV(LOW,10),HHV(HIGH,6),1),COLORBLUE,LINETHICK2;
短压:DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),COLORLIGREEN,LINETHICK2;
短支:DRAWLINE(LOW<=LLV(LOW,120),LOW,HHV(H,6)<=HHV(H,10),LLV(LOW,6),1),COLORCYAN,LINETHICK2;
VA11:=HIGH>=HHV(HIGH,60);
V1:=(REF(VA11,1)>0 AND VA11<1);
VA12:=LOW<=LLV(LOW,60);
V2:=REF(VA12,1)>0 AND VA12<1;
长支:DRAWLINE(V2,LOW,V1,LLV(LOW,6),0),COLOR0099FF,LINETHICK2;
|