BOUCH Trading

Trading & Finance

Full-stack trading platform, autonomous AI strategy agents, and developer tools for PineScript and MetaTrader. Everything in Python, nothing in MQL.

MT5 Trading Platform

Python trading system that replaces MQL5 development. MetaTrader 5 runs on Linux via Wine, connected through an RPyC bridge for full programmatic control. No C++ scripting needed.

Terminal MetaTrader 5
Bridge Wine + RPyC
Services Python API
Interfaces MCP / API / Agents / TUI

Platform Components

MT5 MCP Server

15 FastMCP tools giving Claude bidirectional control of MT5. Account info, market data, technical analysis, order execution — all through natural language.

15 MCP tools FastMCP

Autonomous Agents

7 AI trading agents — trend followers, contrarians, scouts, scalpers. Each with configurable risk profiles, capital allocation, and 37 analysis/execution tools including market data, indicators, risk sizing, and SEC filings.

7 agents 37 tools OpenAI Responses API

Expert Strategy Engines

TrapExpert (contrarian SMC patterns), SMCExpert (order blocks, FVGs, BOS/CHoCH), SessionExpert (London/NY/Asia timing). Backtested and validated.

60% win rate EURUSD validated

BOUCHBERG Terminal

Bloomberg-style TUI built with Textual. 7-widget interface — watchlist, signal feed, order panel, charts, positions, equity header, ticker tape. 4 modal views. Full keyboard control with live MT5 data.

7 widgets Textual Real-time

Validation Suite

Monte Carlo (10k shuffles), parameter sensitivity, walk-forward, regime ablation, spread-adjusted P&L. Eval harness for agent decision quality scoring.

5 test suites Walk-forward

REST API

FastAPI with MT5 and SMC analysis routes. WebSocket for real-time updates. Serves the agents, TUI, and any external client.

FastAPI WebSocket

PineScript & TradingView

PineSmith

Live

AI-powered Pine Script v6 code generation. 13-rule static linter, 24 API endpoints, React 19 frontend (50+ components). Supabase auth, live Stripe billing (Free/Pro). Deployed on Fly.io.

SaaSPine ScriptReactFastAPIStripe
View project →

PineScript MCP Server

Live

MCP server for TradingView's PineScript v6. Grounded access to full documentation, function signatures, and working examples for AI assistants.

MCPPineScriptTradingView
View project →

Finance Tools

Finance Tracker

In Development

Full-stack financial planning tool. Multi-regime UK/Italy tax analysis, interactive investment projections, Monte Carlo simulations. React frontend with FastAPI backend, config-driven architecture.

ReactFastAPITypeScriptFinancial Planning

Why MCP for Trading

PineScript has its own conventions, version-specific syntax, and a large function library. General-purpose AI gets it wrong constantly: hallucinated functions, mixed v4/v6 syntax.

An MCP server connects the AI to actual PineScript documentation, correct function signatures, and working examples. Same idea with MT5: instead of guessing about market data, the AI queries the real terminal.

Building in trading, finance, or quantitative analysis? Get in touch.

Free Your Main Thread