你好 小幫手
我寫了一個簡單的stochastic RSI 指標如下:
Input:a1(14,"period");
vars:hiRSI(0),loRSI(0),curRSI(0),stoRSI(0);
hiRSI=highest(RSI(close,a1),a1);
loRSI=lowest(RSI(close,a1),a1);
curRSI=RSI(close,a1);
if hiRSI-loRSI<>0 then
stoRSI=(curRSI-loRSI)*100/(hiRSI-loRSI)
else
stoRSI=(curRSI-loRSI)*100;
value1=average(stoRSI,3);
plot1(stoRSI,"StochRSI K");
plot2(value1,"StochRSI D");
我想知道要怎麼樣可以把它變成跨頻率的指標,我想在5分K中看這個指標在60分K的位置
我知道xfMin_RSI("60", GetField("Close","60"), 14)這個函數可以讓我取得60分K的RSI值
但是highest(xfMin_RSI("60", GetField("Close","60"), 14),14)取得的不是60分K的14根K棒的最大RSI
而是5分K中14根K棒在60分K中的RSI值,所以不知道能不能指點一下要怎麼在5分K圖中
取得60分K中14根K棒RSI的最大值,感謝你
1 評論