請問小幫手,在XSScript中以下列程式計算RSI來選股,天數用42當長天期,短天期用18,但為何選股結果中顯示的數值與
線圖上顯示的數值不符?謝謝
input: DataLength(90), ShortLength(18), LongLength(42); variable: RSI42Long(0), RSI42Short(0); SetTotalBar(DataLength); RSI42Long = RSI(Close, LongLength); RSI42Short = RSI(Close, ShortLength); outputfield6(RSI42Long, "RSI42"); outputfield7(RSI42Short, "RSI18");



1 評論