Rearview Download

Oversold above the 200-day

Stocks in a long-term uptrend that have just had a sharp two-day drop: the setup a short-term pullback strategy buys. Most oversold first.

Scans · scans/oversold_above_trend.rvw

language 1
scan "Oversold above the 200-day" {
  universe   members("SYN500")
  rsi2       rsi(close, 2)
  trend      close > sma(close, 200)
  filter     trend and rsi2 < rsi_max
  rank by    -rsi2
  param      rsi_max = 10 in 5..20 step 5
}

Functions it uses

rsi, sma

Try it

Each lists the sample data’s stocks that meet its conditions on a day, best ranked first, with every value it worked out. See Scans.

File ▸ New Script from Example adds it to a project. The examples read the sample’s index label, SYN500, and market ETF, SYNSPY; when your data has neither, a sheet asks what to read instead, one of your index labels (or every stock and ETF) and a ticker, so the example runs on your data as it is.