Rearview Download

Pullbacks in leaders

The strongest tenth of the universe by six-month return, dipping below their 10-day average: leaders on sale. The deepest dip first.

Scans · scans/pullbacks_in_leaders.rvw

language 1
scan "Pullbacks in leaders" {
  universe   members("SYN500")
  strength   rank_pct(roc(close, 126))
  dip        close / sma(close, 10) - 1
  filter     strength >= 90 and dip < 0
  rank by    -dip
}

Functions it uses

rank_pct, roc, 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.