找尋RSI低檔期的股票,想找出基期,RSI值<20 以下的股票,並可自由設定RSI VALUE
,目前由程式碼來修改,只是很奇怪,參數的設定,都找不到任何選股,請小幫手幫幫忙一下 ,謝謝。
延長期數RSILength(6)=>RSILength(12),
或是增加區間:Region(5)=>Region(15)
// RSI由下往上, 與價格趨勢背離
//
Input: RSILength(6), Threshold(20), Region(5);
variable: rsiValue(0);
settotalbar(maxlist(RSILength,6) * 9);
SetInputName(1, "期數");
SetInputName(2, "低檔值");
SetInputName(3, "日期區間");
RSIValue = RSI(Close, RSILength);
If RSIValue Crosses Above Threshold and
RSIValue > Highest(RSIValue, Region) and
Close <= Lowest(Close, Region) then
Ret = 1;
setoutputname1("RSI");
outputfield1(RSIValue);

3 評論