Hello, Is there a way to scan a watchlist with the current price has just touched RSI 70% or 30% or within the last 5 bars? I am trying to find which stock on my watchlist is at oversold or overbought area within the last 5 bars. Thanks!!
# RSI Scan # Nick Name NAG® # 3.15.2016 # If you'd like to scan for stocks that have crossed the an input level (e.g. 30 level) # on the RSI for the first time in 3 years. # # The scanner limitation is 750 daily bars. It doesn't go any further # back than that. TOS limits historical scan data to 730 days for daily # and up aggregation, so I'm not sure there's enough to do that accurately. # This should get what's available within TOS limits. rec rsi_cross = CompoundValue(1, if RSI() crosses above 30 then rsi_cross + 1 else rsi_cross, 0); plot scan = rsi_cross == 0 and rsi_cross == 1; # End Study
Last edited by a moderator: