请高手编个通达信得选股公式,设RSI3个参数的值分别为12, 14, 72,

选出RSI12 上穿RSI72的股票
2024-11-29 19:54:03
推荐回答(1个)
回答1:

LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),72,1)/SMA(ABS(CLOSE-LC),72,1)*100;
XG:CROSS(RSI2,RSI3);