Monthly momentum, rebalanced
Monthly momentum, rebalanced: on the first trading day of each month, hold the ten stocks with the strongest six-month momentum that trade above their 200-day average, each resized to an equal share of equity. A stock that drops out of the ten is sold. The 20% band skips resizes too small to matter, so the strategy isn't trading a few shares every month.
Strategies · monthly_rebalanced_momentum.rvw
language 1
strategy "Monthly momentum, rebalanced" {
universe members("SYN500")
mom roc(close, lookback)
enter long when mom > 0 and close > sma(close, 200)
rank by mom
size equal weight, max 10 positions
rebalance monthly, band 20%
param lookback = 126 in 63..252 step 63
}
Functions it uses
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?