Selected work and case studies

Custom IBKR trading bots, MT5 Expert Advisors, TradingView automation, and Solana/Ethereum smart contracts — built by Team NAK for clients worldwide.

Featured systems

A closer look at what these systems actually solve — beyond a code repo.

S&P 500 Statistical Arbitrage Engine

Problem

Needed a market-neutral trading system — one exposed to the relationship between two stocks, not the direction of the market.

What we built

A 3-phase system: offline GICS-industry pair screening with a statistical test battery, a live execution engine with Kalman-filtered hedge ratios and automated news-risk blacklisting, and a monitoring dashboard.

Stack

Python 3.12 · Interactive Brokers · Databento market data · Kalman filtering · Google Gemini

Result

Production system with guaranteed combo execution, no overnight risk, no martingale — backed by a 550-test automated suite before going live.

SPY Intraday Execution Engine

Problem

Needed fully automated SPY intraday execution with layered risk controls, not a signal bot that still requires a human to click buy.

What we built

An asyncio producer/consumer engine on the raw IBKR TWS API — decoupled tick ingestion and order execution, OCO entries, staged stop-loss/take-profit logic, automatic reversal on stop-out, and hard daily-loss and time-based flatten rules.

Stack

Python · asyncio · Interactive Brokers TWS API (EWrapper/EClient)

Result

Runs unattended with hard PnL stops, trailing take-profit tiers, and a forced end-of-day flatten — no manual intervention required.

Multi-Account Signal-to-Execution Bridge

Problem

A trade-alert service publishes signals by email — needed those turned into verified, routed, risk-checked orders across multiple IBKR accounts, with a human approval step before anything trades.

What we built

An IMAP-polling signal parser handling two independent portfolio types, a Telegram approve/reject workflow, per-account capital allocation and position sizing, and dynamic multi-gateway routing — new IBKR accounts added via config, no code changes.

Stack

Python · ib_insync · Telegram Bot API · Playwright · SQLite

Result

One signal feed reliably fanned out to multiple IBKR accounts with independent sizing and a human-in-the-loop approval gate, plus real fill confirmation instead of blind execution.

Cross-Account Trade Copier

Problem

Needed to mirror a master IBKR account's live trades to an unlimited number of client accounts in real time, each with its own position sizing.

What we built

A master service that connects to TWS to see all manual orders and exposes them plus live balance via an API; each client runs a packaged app that polls the master, applies proportional sizing, and places its own orders independently.

Stack

Python · ib_insync · Flask · PyInstaller · GitHub Actions CI

Result

Real-time trade mirroring across unlimited follower accounts with independent position sizing, packaged as a one-click installer for non-technical clients.

IBKR Modular Execution Engine with Flask UI

IBKR Modular Execution Engine with Flask UI

PythonFlaskIBKR TWSBracket OrdersRisk Sizing

Modular Interactive Brokers execution engine with bracket orders, dynamic risk sizing, and a Flask control panel. Clean separation of strategy logic and execution makes it easy to plug in any trading strategy.

IBKR Daily Stock Scanner Bot

IBKR Daily Stock Scanner Bot

PythonIBKRPandasExcelTechnical Analysis

Post-market technical analysis scanner powered by Interactive Brokers. Filters and scores 100+ US stocks using custom conditions, exports timestamped CSV and Excel reports for next-day trading review.

Flash Loan Arbitrage Smart Contract

Flash Loan Arbitrage Smart Contract

SolidityAaveHardhatEthereumDeFi

Solidity-based flash loan arbitrage smart contract using Aave V3 and Hardhat. Scans DEX price differences across Uniswap and SushiSwap, then executes profitable arbitrage trades atomically with zero capital risk.

Trillex MT5 Scalping EA — XAUUSD Gold

Trillex MT5 Scalping EA — XAUUSD Gold

MQL5MT5XAUUSDEMAPSAR

High-performance MT5 scalping Expert Advisor for XAUUSD Gold. Uses triple EMA and Parabolic SAR with an aggressive 10-second Insane Mode for ultra-fast entries. Live-ready with full risk management.

MT5 LSTM Neural Network Trading Bot — GBPUSD

MT5 LSTM Neural Network Trading Bot — GBPUSD

PythonMT5LSTMTensorFlowMQL5

Complete trading automation using MetaTrader 5 and LSTM Neural Networks. Detects engulfing patterns, combines volume and pivot signals, trades GBPUSD with trailing stop-loss, partial take-profit, and live MT5 execution.

STAR EA — ICT-Based MT5 Expert Advisor

STAR EA — ICT-Based MT5 Expert Advisor

MQL5MT5ICTOrder BlocksFVG

Advanced MT5 Expert Advisor with a 12-scenario market classification engine implementing ICT concepts: Order Blocks, Fair Value Gaps, OTE, Liquidity Sweeps, CRT, Judas Swing, Silver Bullet, and AMD market cycles.

IBKR Copy Trade Engine

IBKR Copy Trade Engine

PythonIBKR TWS APIMulti-AccountRisk Management

Production-ready trade replication engine for Interactive Brokers. Copies trades from a master account to multiple follower accounts with position sizing, risk controls, and real-time execution monitoring.

IBKR AI Trading Bot with OpenAI Integration

IBKR AI Trading Bot with OpenAI Integration

PythonIBKROpenAIib_insyncAI

Python trading bot connecting to Interactive Brokers via ib_insync for live market data and automated order execution. Integrates OpenAI GPT for advanced signal generation and market analysis.

TradingView to IBKR Bridge Bot

TradingView to IBKR Bridge Bot

Pythonib_insyncFlaskWebhooksIBKR

Production-hardened webhook bridge connecting TradingView Pine Script alerts to Interactive Brokers for automated order execution. Supports paper and live trading, Buy/Sell/Stop-Loss, and multi-strategy management.

IBKR Algorithmic Trading Bot with React Dashboard

IBKR Algorithmic Trading Bot with React Dashboard

PythonFastAPIReactIBKR TWS APIWebSocket

Full-stack algorithmic trading system for Interactive Brokers. Features automated trading with EMA, RSI, MACD, and Bollinger Bands strategies. Includes a real-time React dashboard with WebSocket updates, 6 trading modes, and FastAPI backend.