N:=10;
LC:=REF(CLOSE,1);{股票公式-股票指标www.gs6699.com}
周线形态选股:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;
指标公式:=100*(HHV(HIGH,30)-CLOSE)/(HHV(HIGH,30)-LLV(LOW,30));
wsssd1:=BETWEEN(指标公式-周线形态选股,N,0.01) AND 指标公式>周线形态选股;
wsssd2:=(MA(CLOSE,5)+MA(CLOSE,8)+MA(CLOSE,13)+MA(CLOSE,21))/4;
wsssd3:=wsssd2>REF(wsssd2,1) AND REF(wsssd2,1)<REF(wsssd2,2);
wsssd4:wsssd1 AND wsssd3;
wsssd5:=(HHV(CLOSE,10)-LLV(CLOSE,10))/REF(C,1)*100<10;
wsssd6:=REF(wsssd5,1) AND CROSS(C,REF(HHV(H,10),1));
wsssd7:=VOL/CAPITAL*100>1 AND V/REF(MA(V,5),1)>2;
wsssa2:=LLV(LOW,10);
wsssa3:=HHV(HIGH,25);
wsssa1:=EMA((CLOSE-wsssa2)/(wsssa3-wsssa2)*4,4)<1.72;
wsssd6 AND wsssd7 AND wsssa1 ;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
AA:=CROSS(DIF,DEA) AND DEA>0;
T:=BARSLAST(CROSS(DEA,DIF));
wsssa5:=REF(BARSLAST(CROSS(DIF,0)),T+1)<20 AND COUNT(DIF>=DEA,T)=1;
AA AND wsssa5;