📈 006
Crypto Trading Bot
Trading BotBinancebitbankSupertrend
Overview
BTC 200EMA determines market direction (long/short); entries only when Supertrend flips, volume surges, and a slower dual-Supertrend confirms direction. TP1 at ATR×1.25 takes 30% early; remaining 70% rides a tight trailing stop (ATR×0.75) to lock in gains. Margin trading enables both long and short entries. 5-year backtest (real costs incl. LUNA/FTX crash): ~70% win rate / PF 1.15 / +25.8% capital growth.
Architecture
Key Implementation Points
- BTC 200EMA auto-selects direction: long in bull markets, short in bear markets
- Triple filter (Supertrend flip + volume spike + dual-Supertrend confirmation) eliminates false signals
- TP1 at ATR×1.25 for early profit; tight trailing stop at ATR×0.75 locks in gains on strong trends
- Monitors margin ratio every 30 min with auto emergency-close; 24h cancel, order-verify retry, and SSM state enable unattended operation
Tech Stack
Lambda
EventBridge Scheduler
SSM Parameter Store
SES
SQS
CloudFormation