10日内股价和RSI同时创一年内(250日内)最高的选股公式。
N:=14;
LC:=REF(CLOSE,1);
RSIN:SMA(MAX(CLOSE-LC,0),N,1)/SMA(ABS(CLOSE-LC),N,1)*100;
COUNT(C=HHV(C,250),10)>0 AND COUNT(RSIN=HHV(RSIN,250,10)>0 AND ABS(BARSLAST(C=HHV(C,250))-BARSLAST(RSIN=HHV(RSIN,250)))<3;