Trailing Llama

Automated SMA-crossover trading harness for your Alpaca account โ€” paper or live, multi-user, with server-side trailing stops.

Sign up free Log in

๐Ÿ“ˆ SMA crossover strategy

Fast (10) vs. slow (30) simple moving average crossover on 1-minute bars. A configurable neutral zone suppresses whipsaw signals.

๐Ÿ›ก Server-side trailing stops

Every position gets a 10% trailing stop placed at Alpaca as a GTC trailing_stop order. Tightens to 5% once unrealized gain crosses +10%.

๐ŸŒ SPY regime filter

New buys are suppressed when SPY trades below its 200-day SMA. Existing positions and stops continue unaffected.

๐Ÿšซ 31-day loss blocklist

Symbols sold at a loss are blocked from re-entry for 31 days. Manual override available with a wash-sale warning.

๐Ÿ‘ฅ Multi-user with admin approval

Each user runs their own Alpaca account. Admin explicitly approves which users' bots are active. Built-in role and status management.

๐Ÿ”’ Encrypted live keys

Live-trading API keys are stored encrypted at rest with AES-256-GCM. Paper keys remain plaintext (zero risk). Opt-in confirmation required.

How it works

  1. Sign up with email + password, accept the disclaimer.
  2. Add your Alpaca keys. Choose paper (fake money) or live (real money โ€” requires typed "I UNDERSTAND" confirmation and an encryption secret).
  3. Admin approves your bot. Until enabled, your dashboard is read-only.
  4. Build your watchlist. Add symbols via the dashboard. New accounts start empty.
  5. Let it trade. The bot watches bars during market hours, places orders on crossover signals, and manages trailing stops.
โš  Not financial advice. Trailing Llama is provided as-is, with no warranty. All trading risk, taxes, and outcomes are governed by your Alpaca Customer Agreement. Read the full disclaimer on the signup page before creating an account.