N:=14;
K:=N/2;
MAK:=MA(CLOSE,K);
MAN:=MA(CLOSE,N);
DTPL:=MA(C,N)>MA(C,N*1.5) AND MA(C,N*1.5)>MA(C,N*3) AND MA(C,3)>MA(C,N*6);
选择均线:=N;
强弱天数:=K;
连续走强:=COUNT(C>MA(C,N),K)=K;
ZQSJ:=BARSLAST(连续走强);
下穿:=CROSS(MA(C,N),C);
GL:=MA(C,N/2)/MA(C,N*2)>=1.05;
下体泄:=(下穿 AND ZQSJ<=3 AND DTPL AND GL);
连续走弱:=COUNT(C
上穿:=CROSS(C,MA(C,N));
下体涨:=(上穿 AND ZRSJ<=3);
XG:下体泄 OR 下体涨;