Strategy library
Rule sets we use in our own research, written out in full. They are teaching examples to test, not recommendations to trade.
Double Seven
- Close must be above its 200-bar simple moving average
- Buy at the close when the close is the lowest close of the last 7 bars
- Sell at the close when the close is the highest close of the last 7 bars
Default parameters: trendPeriod=200 lookback=7
Run this rule set on your data
RSI(2) mean reversion
- Close must be above its 200-bar simple moving average
- Buy at the close when 2-period RSI is below the entry threshold
- Sell at the close when the close is above its 5-bar simple moving average
Default parameters: trendPeriod=200 rsiPeriod=2 entryBelow=10 exitPeriod=5
Run this rule set on your data
Moving-average crossover
- Buy at the close when the fast SMA crosses above the slow SMA
- Sell at the close when the fast SMA crosses below the slow SMA
Default parameters: fast=50 slow=200
Run this rule set on your data
How the simulation works and what it ignores: backtester assumptions.