Rearview Download

Least volatile tenth

The low-volatility effect: calmer stocks have often earned more per unit of risk than their jumpy peers. Hold the least volatile tenth of the index while it trends up, and let a stock go when it is no longer among the calmer half.

Strategies · low_volatility_rank.rvw

language 1
strategy "Least volatile tenth" {
  universe   members("SYN500")
  calm       -volatility(window)
  enter long when bucket(calm, 10) == 10 and close > sma(close, 200)
  exit when  bucket(calm, 10) <= 5
  rank by    calm
  size       equal weight, max 20 positions
  param      window = 60 in 20..120 step 20
}

Functions it uses

volatility, bucket, sma

Try it

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.

Before you trust what it does on your data, see whether it’s luck: Is this result luck?