Rearview Download

Hull average turns

A Hull moving average turns sooner than a simple one. Buy when it turns up while the slower Hull average above it is rising, and sell when the quick one turns down. The Chande momentum oscillator picks the strongest turns.

Strategies · hull_trend.rvw

language 1
strategy "Hull average turns" {
  universe   members("SYN500")
  fast       hma(close, quick)
  slow       hma(close, 55)
  enter long when fast > fast[1] and fast[1] <= fast[2] and slow > slow[1]
  rank by    cmo(close, 14)
  size       5% of equity, max 15 positions
  exit when  fast < fast[1]
  param      quick = 20 in 10..30 step 5
}

Functions it uses

hma, cmo

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?