山:=COUNT(EMA(CLOSE,5)>REF(EMA(CLOSE,5),1),5)
KL:=IF(山>0,2*火,0)
趋势:=KL/2
VARL3:=((HHV(H,21)-C)/(HHV(H,21)-LLV(L,21)))*100-10
VARL6:=SMA(VARL3,21,8)
低位线:=IF((趋势-VARL6<(-70)),0,-5)=0
MA5:=EMA(C,5)
MA13:=EMA(C,13)
UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS(MA5,MA13))+1),0)
DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS(MA13,MA5))+1),0)
A8:=100*EMA(EMA((C-REF(C,1)),6),6)/EMA(EMA(ABS((C-REF(C,1))),6),6)
买1:=IF((LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2))) AND REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1),DRAWNULL,100)
选股:买1=100 AND 低位线