AutoTrader: crypto auto-trading platform
An auto-trading platform for CoinEx. It runs 10+ technical strategies on live market data, scores each signal's chance of success and places risk-managed orders. It's the earlier, simpler version of Smart Crypto Trader.
Full Stack Developer · 2025 · Fintech / Algorithmic Trading
Tech: Vue 3, Pinia, Tailwind CSS, Chart.js, Node.js, Express, Sequelize, PostgreSQL, CoinEx API, WebSocket, Docker, NGINX, JWT
The problem
Watching crypto markets around the clock and trading with discipline by hand doesn't work. I wanted a system that reads the market with well-known technical indicators, trades on the signals and enforces strict risk limits.
The approach
A Vue 3 dashboard talks to a Node.js/Express API that streams live CoinEx data over WebSocket, runs the strategy library, scores each signal's success probability and places orders inside risk limits. Sequelize and PostgreSQL store users, pairs, trades and history, and the stack ships in Docker behind NGINX.
The architecture
Three tiers: Vue SPA, Node API, PostgreSQL. It talks to CoinEx over WebSocket and REST, and runs in Docker Compose behind NGINX.
Outcomes
- Automated trading on CoinEx with 10+ configurable strategies
- Risk controls: position sizing, stop-loss/take-profit, daily limits, emergency stop
- Signal-success prediction with a confidence score
- Became the base for Smart Crypto Trader
What it does
AutoTrader trades crypto on the CoinEx exchange automatically. It analyzes the market with a set of technical indicators, estimates how likely each signal is to work, and places trades under strict risk rules. A real-time dashboard shows what it's doing.
This was the first version. Smart Crypto Trader came later and kept the core I built here (strategies, exchange integration, risk controls), then added an AI advisory layer and moved to an event-driven microservice setup.
The problem
Trading crypto well means watching the market all the time and sticking to the rules: size positions properly, respect stop-losses, don't over-trade. Nobody can do that by hand 24/7. AutoTrader runs the loop (analyze, predict, trade, manage risk) so a defined strategy executes the same way every time, without emotion.
What I set out to build:
- Real-time market analysis with several technical strategies.
- A success-probability estimate for each signal before acting on it.
- Automatic execution on CoinEx with risk management built in.
- A live dashboard for portfolio, trades and system health.
Architecture
A plain three-tier app wired to the exchange.
flowchart LR
subgraph Client
VUE[Vue 3 SPA<br/>Pinia + Chart.js]
end
subgraph Server
API[Node.js + Express API]
ENG[Analysis & Prediction Engine]
RISK[Risk Manager]
end
PG[(PostgreSQL<br/>Sequelize)]
CX[CoinEx<br/>WebSocket + REST v2]
NGINX[NGINX Proxy]
VUE --> NGINX --> API
API --> ENG
ENG --> RISK
API --> PG
ENG <-->|live market data| CX
RISK -->|orders| CX
From market data to an order
sequenceDiagram
participant CX as CoinEx WebSocket
participant ENG as Analysis Engine
participant PRED as Signal Predictor
participant RISK as Risk Manager
participant DB as PostgreSQL
CX-->>ENG: Live OHLCV / ticker
ENG->>ENG: Run strategies (RSI, EMA, MACD, ...)
ENG->>PRED: Score signal success probability
alt confident signal + within limits
PRED->>RISK: Proposed trade
RISK->>RISK: Position size, SL/TP, daily limit checks
RISK->>CX: Place order
RISK->>DB: Record trade
else low confidence or limit hit
PRED-->>DB: Log skipped signal
end
Strategies and risk rules
There are 10+ strategies, each with its own parameters: RSI, EMA, MACD, RSI+EMA, a Combined model, FTS Background Switch, Volume Profile, Fibonacci, Momentum Divergence and Market Structure. Every candidate trade goes through a risk layer first:
- Position sizing based on account balance and risk tolerance.
- Stop-loss and take-profit orders managed automatically.
- Daily limits per pair, plus a global emergency stop that halts all trading at once.
Stack
- Frontend: Vue 3, Pinia, Tailwind CSS, and Chart.js for performance charts.
- Backend: Node.js and Express, Sequelize ORM on PostgreSQL.
- Exchange: CoinEx WebSocket and REST API v2 for live data and orders.
- Security: JWT auth, encrypted storage of exchange API credentials, per-user data isolation and audit logging.
- Deployment: Docker Compose with an NGINX reverse proxy.
What changed in Smart Crypto Trader
AutoTrader showed the trading core worked. For Smart Crypto Trader I rebuilt it as a TypeScript Turborepo, split the stages onto an NSQ message queue, added multi-exchange support through ccxt, and replaced the statistical signal prediction with a Claude AI advisor that checks signals and manages open positions.
Results
- A working automated trading platform on CoinEx with 10+ configurable strategies.
- Risk management: sizing, SL/TP, daily limits and an emergency stop.
- Signal-success prediction that filters out low-confidence setups.
- The base that Smart Crypto Trader grew from.