TradeSys —
algo trading platform
TradeSys is my own algo trading platform that I've been building and refining for over a year. Composite signals, backtesting, paper trading, and automated execution. The entire system runs on custom code, no external trading frameworks.
Own platform instead of third-party software.
It started with a simple question: why trust a backtest result from an external platform when I don't know exactly how it implements signals? I decided to build my own tool from scratch. Full control over every line of code. Ability to modify the signal engine in 20 minutes instead of waiting for a platform update.
Requirements I set for myself: historical data for Forex and indices (XAUUSD, US30, XAGUSD), backtesting with realistic spread and slippage, composite signal engine (not one indicator, but multiple filters combined), paper trading before going live, export results to CSV/JSON for analysis.
The goal isn't "get rich quick". It's to understand which strategies have statistical edge under realistic assumptions, and build a system that's reproducible and measurable.
3 phases: data, signals, execution.
Phase 1: data infrastructure. TimescaleDB (PostgreSQL extension) for storing OHLCV time series. Python scraper pulling historical data from Dukascopy (free 1-minute data back to 2003). UTC timestamp normalization, duplicate detection, auto-fill weekend gaps.
Faza 2: silnik sygnałów. Każdy sygnał to Python klasa z metodą generate(df) -> pd.Series. Composite signal łączy wagi z kilku sygnałów składowych. Backtesting engine symuluje realny spread (2.1 pips dla XAUUSD), slippage 0.5 pips, position sizing na bazie % konta.
Phase 3: paper trading and monitoring. FastAPI endpoint receiving signals. React dashboard with equity curve, drawdown chart, open positions list. Telegram bot alerts when a signal fires or a position closes via SL/TP.
> RSI Filter (14): weight 0.35 — BUY if RSI < 35
> EMA Cross (20/50): weight 0.40 — BUY if 20 cross above 50
> Volume Spike: weight 0.25 — BUY if vol > 1.8x avg(20)
THRESHOLD: 0.65 → ENTRY
SL: 1.5x ATR(14) | TP: 2.5x ATR(14) [R:R 1:1.67]
TimescaleDB instead of flat CSV. FastAPI instead of Celery.
TimescaleDB
PostgreSQL extension for time-series. Hypertables automatically partition data by time. Queries on a year of 1-minute data in <200ms.
Python + pandas
Entire backtesting and signal engine in Python. Pandas for OHLCV manipulation. Vectorized operations instead of loops — backtesting a year of 1-minute data in <3 seconds.
Docker Compose
TimescaleDB + FastAPI + Redis + React dashboard in one docker-compose.yml. One command to spin up the entire environment. Portable across machines.
Composite signals
One indicator isn't enough. The system combines filters with weights and generates a signal only when the sum exceeds the threshold. Fewer false signals, worse recall — a conscious trade-off.
React dashboard
Equity curve, drawdown chart, open positions, backtest results. Recharts for visualizations. Polling every 5s via REST API — no WebSocket, because paper trading doesn't need ms latency.
Telegram bot
Alerts when a signal fires or a position closes. python-telegram-bot library. Single bot file, async handlers. Entire alert in 5 lines of code.
Python-first. Data close to code. Zero vendor lock-in.
TradeSys is a project that keeps evolving. I'm at the stage of optimizing composite signal parameters across different pairs and timeframes. Every change is logged, backtest results saved to the database with full parametrization — so I can revert to a previous version and compare.
Working system. Full control over data and code.
TradeSys demonstrates that you can build an advanced trading system without purchasing expensive software and without relying on third-party indicator implementations. Full control over data, signals, and execution logic.
The project is also a proof of concept for clients interested in similar systems for their businesses: risk management, automated decision triggers, dashboards with real-time alerts. The stack is portable and customizable for any industry.