我想尋找今日RSI突破70 且今日之前 12天的 RSI都小於 70 的股票 , 以下的寫法會搜尋到不符合條件的股票
input:RLevel(70),Period(12) ;
vars:RSIvalue(0);
RSIvalue = RSI(Close,4);
Condition1 = RSIvalue > RLevel ;
Condition2 = RLevel > Highest(RSIvalue,Period)[1] ;
Ret = Condition1 and Condition2 ;
6 評論