最近在試XS中六合神拳指標時, 發現一個奇怪問題
如下是該指標中的一部分程式碼, 按照規則應該是 6日RSI大於 10日RSI, 且 6日RSI < 50 應該就要輸出 1
但實際結果卻不是這樣, 可參考附圖,
以泰碩(3338) 在 2018-05 到 2018-06 為例, 應該從 2018-05-07開始就輸出1, 但結果依然是 0
input:length1(6,"短天期RSI參數");
input:length2(10,"長天期RSI參數");
variable:count(0);
count=0;
if RSI(Close, Length1) > RSI(Close, Length2) and RSI(Close,Length1)<50 then
count=1;
plot1(count,"分數");

2 評論