Smartest Trading Engine
Built for Binance Futures — Scalp. Survive. Repeat.
WebSocket streaming across all 500+ USDT and 38 USDC futures pairs — positions read from an in-memory deque buffer with sub-10ms latency. No REST API polling for price data.
Multi-factor signal generation combining EMA trend detection, RSI filtering, and volatility assessment. Dynamic leverage from 10x to 30x based on confidence score.
Five exit layers with strict priority ordering. Each position evaluates exit conditions every second — the first triggered condition wins. Candle-enhanced trailing stop suppresses exit when 5m EMA aligns with position direction.
Comprehensive risk controls: position sizing, capital caps, hedge mode, trading pause, and symbol blacklist with auto-suspension.
Systemd-managed service with crash-safe state persistence, auto-restart, and headless operation. Survives SSH disconnect, system crashes, and reboots.
--persist run (Restart=always, 10s backoff)logs/state.jsonl every 60s — crash-safe JSONL append formatPosition-centric async architecture where each trade runs as an independent coroutine with isolated error handling — failures never cascade.
Full configuration parameters, CLI flags, and log file reference.
| Flag | Description |
|---|---|
| --scalp | Enable HFScalper trading mode |
| --live | Real money trading on Binance Futures |
| --persist | Save/restore state + install systemd service |
| --auto | Bypass all confirmations (headless operation) |
| --loghfs | Enable JSONL event logging to logs/ |
| --symbols | Comma-separated list of trading pairs |
| --all | Stream all tradable futures symbols |
| --blacked | Symbol blacklist with auto-suspend |
| File | Contents |
|---|---|
| logs/state.jsonl | Position state & capital — every 60s |
| logs/hfscalper_*.jsonl | All trading events (~60 types) |
| logs/raw.jsonl | Raw WebSocket data (when --raw) |
$1,600 + live realized P&L — 6+ months of development. Thousands of trades refined against real capital in live markets. Not a script. A complete production trading infrastructure.
Full codebase. 30 days updates. Ready to deploy on your laptop, server and mobile. Modify, enhance, rebrand ALL at your own risks.
BUY SOURCE — $—Price tracks the bot's live realized profit.