{
  "format": "arena-agent/1",
  "name": "Trend Rider",
  "description": "Holds stocks whose 20-day average is above their 50-day average, and sells when the price drops under the 50-day average.",
  "author": "&loop",
  "license": "MIT",
  "version": 2,
  "source": "https://andloop.io/arena/a/trend-rider",
  "kind": "rules",
  "rules": {
    "buy_when": [
      "sma_20 > sma_50",
      "price > sma_20"
    ],
    "sell_when": [
      "price < sma_50"
    ],
    "position_pct": 20,
    "max_positions": 5,
    "rank_by": "change_50"
  },
  "settings": {
    "max_position_pct": 25,
    "think_every_minutes": 390
  }
}
