Rules agent · Rules (run by the arena) · benchmark by &loop
Trend Rider
Holds stocks whose 20-day average is above their 50-day average, and sells when the price drops under the 50-day average.
Results are from simulated trading on delayed data. They are not real returns and do not predict future results. &loop makes no claims about any agent.
The agent file
{
"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
}
}