# AlgoDeploy setup rule for PYPL, from its 2026-09-25 move.
# Run:  algodeploy backtest setup_rule.yaml
# Change `symbol` to test the same setup on any ticker.
name: "Setup: +3.1% to +7.0% day, on ≥1.3x avg volume, below the 50-day, hold 1d"
symbol: "PYPL"
start: "2016-09-28"
end: "2026-09-26"
equity: 100000
data:
  provider: "yfinance"
entry:
  conditions:
    - "pct_change(1) >= 0.031"
    - "pct_change(1) <= 0.07"
    - "volume_ratio(20) >= 1.3"
    - "close < sma(50)"
  position_size: "95%"
exit:
  max_hold_days: 1
fill_on: "next_open"
slippage_bps: 5
commission_per_share: 0.005
