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

  1. Close must be above its 200-bar simple moving average
  2. Buy at the close when the close is the lowest close of the last 7 bars
  3. 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

  1. Close must be above its 200-bar simple moving average
  2. Buy at the close when 2-period RSI is below the entry threshold
  3. 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

  1. Buy at the close when the fast SMA crosses above the slow SMA
  2. 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.