编写要求:
www.gszx.com.cn网解答:
网友求助:
求老师帮写同花顺选股公式 要求RSI6 >80 ,RSI12 >70 , RSI24 > 60, 同时KDJ的J>85 菜鸟谢了
解答如下:
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;
RSI$3:=SMA(MAX(CLOSE-LC,0),24,1)/SMA(ABS(CLOSE-LC),24,1)*100;
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;
SELECT RSI$1>80 AND RSI$2>70 AND RSI$3>60 AND j>85;