RSI计算问题
Range[0:DataSourceSize() - 1] { If(CurrentBar <= Length - 1) { NetChgAvg = ( data[1].Close - data[1].Close[Length] ) / Length ; TotChgAvg = Average( Abs( data[1].Close - data[1].Close[1] ), Length ) ; }Else { SF = 1/Length; Change = data[1].Close - data[1].Close[1] ; NetChgAvg = NetChgAvg[1] + SF * ( Change - NetChgAvg[1] ) ; TotChgAvg = TotChgAvg[1] + SF * ( Abs( Change ) - TotChgAvg[1] ) ; } If( TotChgAvg <> 0 ) { ChgRatio = NetChgAvg / TotChgAvg; }else { ChgRatio = 0 ; } RSIValue = 50 * ( ChgRatio + 1 ); plt1.line("RSI",date+time,RSIValue); plt1.line("超买",date+time,OverBought); plt1.line("超卖",date+time,OverSold); }我复制系统指标RSI的代码,添加到自己写的策略里,发现最终计算出来的RSI值不一样,周期都是用的14,品种是jm888,不复权,周期1D。请问系统指标RSI计算除了代码外还有其他处理吗