N1:=5;N2:=8;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(Abs(CLOSE-LC),N1,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;
抄底:CROSS(RSI1,20) AND (CROSS(RSI1,RSI2) AND RSI1<50);
九毛八公式解读
N1赋值:5 N2赋值:8 LC赋值:1日前的收盘价 RSI1赋值:收盘价-LC和0的较大值的N1日[1日权重]移动平均/收盘价-LC的绝对值的N1日[1日权重]移动平均*100 RSI2赋值:收盘价-LC和0的较大值的N2日[1日权重]移动平均/收盘价-LC的绝对值的N2日[1日权重]移动平均*100 输出抄底:RSI1上穿20 AND (RSI1上穿RSI2 AND RSI1<50)