九毛八公式指标
公式模块:
我想求一个同花顺的选股公式,主要是三句;日线的rsi在50%以下6日线上穿或大于12日线;日线的kdj在50%以下J值线由下向上交叉k线,d线;日线的macd的DIFF上穿或大于DEA;其中任意两项(三项最好)满足条件则会被选出 RSV=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K=SMA(RSV,3,1);
D=SMA(K,3,1);
J=3*K-2*D;
LC:= REF(CLOSE,1);
RSI$1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI$2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);
DEA := EMA(DIFF,9);
条件1:=crOSS(RSI$1,RSI$2) OR RSI$1>RSI$2 AND RSI$2<50;
条件2:=CROSS(J,K) AND K<50;
条件3:=CROSS(DIFF,DEA ) OR DIFF>DEA ;
选股:条件1 AND 条件2 AND 条件3;