洗盘结束等雄起 中线买入待盈利【指标公式】(含选股)
MA250:MA(C,250),colorred;
MA6:MA(C,6),colorred,LINETHICK2;
MA18:MA(C,18),coloryellow,LINETHICK2;
MA55:MA(C,55),COLORFF00FF;
MA144:MA(C,144),colorgreen;
MA288:MA(C,288),colorblue;
中线买入:=COUNT(CLOSE<MA18,5)=4 AND
CLOSE/MA18>1.004 AND CROSS(CLOSE,MA18) AND MA18>=
REF(MA18,1);
DRAWTEXT(中线买入,LOW*0.95,' 中线买入'),colorred;
VL:=REF(LOW,1);
GU12:=(SMA(ABS(LOW-VL),13,1))/(SMA(MAX(LOW-VL,0),13,1))*100;
GU14:=MA(GU12,13);
GU15:=LLV(LOW,34);
GU18:=MA(IF(LOW<=GU15,GU14,0),3);
GU110:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1),5,1);
GU111:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1)*16.18-GU110*10.9;
T:=FILTER(IF(GU111<=GU110 AND GU18>REF(GU18,1),GU18*8,0),20);
DRAWTEXT(T,LOW-0.4,'←洗盘结束'),COLORFF00FF;
DRAWTEXT(T,LOW-0.2,'|'),COLORFF00FF;
GU21:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
GU22:=SMA(GU21,3,1);
GU23:=SMA(GU22,3,1);
GU24:=SMA(GU23,3,1);
GU25:=CROSS(GU23,GU24) AND GU23<20;
DRAWTEXT(FILTER(GU25,10)=1,LOW-0.4,'←抄底'),colorred;
DRAWTEXT(FILTER(GU25,10)=1,LOW-0.2,'|'),colorred;
GU29:=CROSS(GU24,GU23) AND GU23>80;
DRAWTEXT(FILTER(GU29,5)=1,HIGH+0.4,'←逃顶'),colorblue;
DRAWTEXT(FILTER(GU29,5)=1,HIGH+0.2,'|'),colorblue;
PJ:=(HIGH + LOW +2* C)/4;
JX:=MA(PJ,3);
角度:=ATAN((JX/REF(JX,1)-1)*100)*180/3.1416;
S:=COUNT(MA(CLOSE,5)>REF(MA(CLOSE,5),1),5);
IF(角度<=0,MA6,DRAWNULL),colorgreen,LINETHICK2;
IF(角度>=0 AND S>0,MA18,DRAWNULL),COLOR9326FF,LINETHICK2;
{选股公式一:中线买入}
MA18:=MA(C,18);
中线买入:COUNT(CLOSE<MA18,5)=4 AND CLOSE/MA18>1.004 AND CROSS(CLOSE,MA18) AND MA18>= REF(MA18,1);
{选股公式二:抄底}
GU21:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
GU22:=SMA(GU21,3,1);
GU23:=SMA(GU22,3,1);
GU24:=SMA(GU23,3,1);
GU25:=CROSS(GU23,GU24) AND GU23<20;
抄底:FILTER(GU25,10)=1;
{选股公式三:洗盘结束}
VL:=REF(LOW,1);
GU12:=(SMA(ABS(LOW-VL),13,1))/(SMA(MAX(LOW-VL,0),13,1))*100;
GU14:=MA(GU12,13);
GU15:=LLV(LOW,34);
GU18:=MA(IF(LOW<=GU15,GU14,0),3);
GU110:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1),5,1);
GU111:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1)*16.18-GU110*10.9;
T:=FILTER(IF(GU111<=GU110 AND GU18>REF(GU18,1),GU18*8,0),20);
洗盘结束:T;