N1:=6;N2:=12;N3:=24;
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;
RSI3:=SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100;
BIAS1:=(CLOSE-MA(CLOSE,N1))/MA(CLOSE,N1)*100;
BIAS2:=(CLOSE-MA(CLOSE,N2))/MA(CLOSE,N2)*100;
BIAS3:=(CLOSE-MA(CLOSE,N3))/MA(CLOSE,N3)*100;
强牛:(BIAS1<BIAS2 AND BIAS2<BIAS3 AND BIAS1>2 AND RSI1>60 AND RSI2>50 AND RSI3>50 AND RSI1>RSI2 AND RSI2>RSI3 AND CYS>3 AND CYR>1);
九毛八公式解读
N1赋值:6 N2赋值:12 N3赋值:24 LC赋值:1日前的收盘价 RSI1赋值:收盘价-LC和0的较大值的N1日[1日权重]移动平均/收盘价-LC的绝对值的N1日[1日权重]移动平均*100 RSI2赋值:收盘价-LC和0的较大值的N2日[1日权重]移动平均/收盘价-LC的绝对值的N2日[1日权重]移动平均*100 RSI3赋值:收盘价-LC和0的较大值的N3日[1日权重]移动平均/收盘价-LC的绝对值的N3日[1日权重]移动平均*100 BIAS1赋值:(收盘价-收盘价的N1日简单移动平均)/收盘价的N1日简单移动平均*100 BIAS2赋值:(收盘价-收盘价的N2日简单移动平均)/收盘价的N2日简单移动平均*100 BIAS3赋值:(收盘价-收盘价的N3日简单移动平均)/收盘价的N3日简单移动平均*100 输出强牛:(BIAS12 AND RSI1>60 AND RSI2>50 AND RSI3>50 AND RSI1>RSI2 AND RSI2>RSI3 AND 市场盈亏>3 AND 市场强弱>1)