๐ SMA crossover strategy
Fast (10) vs. slow (30) simple moving average crossover on 1-minute bars. A configurable neutral zone suppresses whipsaw signals.
Automated SMA-crossover trading harness for your Alpaca account โ paper or live, multi-user, with server-side trailing stops.
Fast (10) vs. slow (30) simple moving average crossover on 1-minute bars. A configurable neutral zone suppresses whipsaw signals.
Every position gets a 10% trailing stop placed at Alpaca as a GTC trailing_stop order. Tightens to 5% once unrealized gain crosses +10%.
New buys are suppressed when SPY trades below its 200-day SMA. Existing positions and stops continue unaffected.
Symbols sold at a loss are blocked from re-entry for 31 days. Manual override available with a wash-sale warning.
Each user runs their own Alpaca account. Admin explicitly approves which users' bots are active. Built-in role and status management.
Live-trading API keys are stored encrypted at rest with AES-256-GCM. Paper keys remain plaintext (zero risk). Opt-in confirmation required.