{涨停放量起爆}
MAA5:=MA(C,5);
MAA10:=MA(C,10);
MAA20:=MA(C,20);
MAA30:=MA(C,30);
KS:=IF(MAA10 MAA30,MAA10,MAA30),COLORBLUE;
A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
A4:=SMA(A3,3,1);
A5:=SMA(A4,3,1);
A6:=3*A4-2*A5;
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
A9:=( (C-REF(C,1)) / REF(C,1) ) 0.02; {涨幅要大于2%}
买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8 0,2) AND CROSS(A8,MA(A8,2)) AND A9;
买1:=FILTER(买=1,5);
{DRAWTEXT(),LOW-0.01,'↖买进'),COLORMAGENTA;
DRAWTEXT(,LOW-0.01,'↖买进'),COLORMAGENTA;
STICKLINE(买,OPEN,CLOSE,2,0),COLORMAGENTA;}
{最近 15 日存在涨停}
涨停:=CLOSE/REF(CLOSE,1) =1.093;
曾经涨停:= COUNT(涨停,15)
上穿五十日线:= (CROSS(C, MAA5) AND CROSS(C, MAA10));
选股: ( 买1 AND 曾经涨停 AND 上穿五十日线 );