Skip to main content
All projects
Project case study

Algorithmic Trading & Signal System

A Python algorithmic trading and signal research system engineered exclusively for XAUUSDm (Gold) using Smart Money Concepts (BOS/CHoCH), a 13-gate confluence framework, strict risk controls, MetaTrader 5, PostgreSQL, and Docker.

trading research systemexperimentalB.Tech Capstone
Algorithmic Trading & Signal System main interface preview

Problem

Retail trading systems often suffer from ungrounded discretionary logic, opaque execution behavior, poor risk management, and unverified multi-timeframe signals that are difficult to backtest and debug.

Solution

Built a modular Python research and execution system tailored exclusively for XAUUSDm that isolates data ingestion, Smart Money Concepts (BOS/CHoCH), a 13-gate confluence scoring framework, volatility-based risk controls, and PostgreSQL trade logging.

What this proves

The most recruiter-relevant signals from this build, pulled from the project feature set.

1

Exclusively engineered for XAUUSDm gold market dynamics (zero cryptocurrency exposure)

2

Smart Money Concepts (SMC) causal market-structure analysis detecting BOS (Break of Structure) and CHoCH (Change of Character)

3

13-gate confluence validation framework combining multi-timeframe structure, fair-value gaps, liquidity runs, and session timing

4

Strict risk controls: volatility-adaptive position sizing, ATR-calibrated stop-loss, and multi-stage partial-take-profit logic

Overview

A Python-based algorithmic trading and signal research system built around the MetaTrader 5 platform, focused exclusively on gold (XAUUSDm). The project is structured as a modular pipeline for market-data processing, Smart Money Concepts (SMC) market-structure analysis (Break of Structure / Change of Character), a 13-gate confluence validation framework, strict risk controls, and structured trade logging. It was developed as a B.Tech capstone project to investigate causal market structure, fair-value gaps, liquidity sweeps, and multi-timeframe validation with engineering rigor and diagnostic hypothesis tracking.

Architecture

Python application organized around a central orchestrator with separate modules for market-data processing, market-structure analysis, risk management, and structured logging. MetaTrader 5 serves as the execution and live tick/bar ingestion environment, while PostgreSQL persists trade records and diagnostic outputs for offline analysis.

Screenshots

Algorithmic Trading & Signal System - dashboard
dashboard
Algorithmic Trading & Signal System - Strategy
Strategy
Algorithmic Trading & Signal System - Settings
Settings
Algorithmic Trading & Signal System - AI Copilot
AI Copilot

Key features

  • Exclusively engineered for XAUUSDm gold market dynamics (zero cryptocurrency exposure)
  • Smart Money Concepts (SMC) causal market-structure analysis detecting BOS (Break of Structure) and CHoCH (Change of Character)
  • 13-gate confluence validation framework combining multi-timeframe structure, fair-value gaps, liquidity runs, and session timing
  • Strict risk controls: volatility-adaptive position sizing, ATR-calibrated stop-loss, and multi-stage partial-take-profit logic
  • MetaTrader 5 integration for live tick/bar ingestion and order execution
  • PostgreSQL persistence for trade records, signal logs, and diagnostic analysis
  • Dockerized environment for reproducible backtesting and execution

Challenges

  • Translating discretionary trading concepts into deterministic, testable modules
  • Managing state and position tracking across MetaTrader 5 bar events
  • Designing logging and diagnostics that reveal discrepancies between expected and observed behavior

Lessons learned

  • Modular architecture makes it possible to isolate and test individual strategy components
  • Structured logging is as important as the trading logic for understanding system behavior
  • Risk management and debugging infrastructure deserve as much design attention as signal generation

Future improvements

  • Multi-timeframe confirmation pipeline expansion
  • Automated performance reporting and hypothesis tracking
  • Visualization dashboard for strategy diagnostics