SuperAPIAI Directory

ai-trading-journal

github.com · Other AI tools

AI Trading Journal is a free and open-source trading journal tool for MetaTrader 5 (MT5). It automatically syncs all trade records through a read-only EA, provides a profit and loss calendar, a trading journal with screenshots and emotion annotations, analysis by symbol, behavioral risk alerts, and can connect to Claude via MCP as an AI trading coach. All data is stored in a local SQLite database, with no subscription or cloud account required, and it prioritizes privacy.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

AI Trading Journal is a free and open-source trading journal for MetaTrader 5 (MT5) users, licensed under MIT, running on the user's own computer with no subscription and no cloud account, and data stored in a local SQLite file.

Purpose: to help traders automatically record and review MT5 trades, combining statistical analysis with an AI coach to examine the trading process and discipline.

Main capabilities:

  • Automatic sync: exports the complete history and every new fill through a read-only MT5 Expert Advisor, including partial closes, commissions, swap, stop-loss modifications, and MFE/MAE; trades appear within seconds after closing.
  • Dashboard: displays balance, equity, floating profit and loss, the day's result, and historical returns, and reconciles with MT5; provides win rate, profit/loss ratio, expectancy, average R, maximum drawdown, and period-over-period comparisons, including an equity curve, daily profit and loss, and breakdowns by symbol and trading session, with support for 7D/30D/90D/1Y/All or custom dates.
  • Profit and loss calendar and daily journal: color-coded by result, showing trade count and win rate plus weekly totals; clicking a day lets you view trades and write a pre-market plan, post-market review, and mood.
  • Trading journal: filter by symbol, direction, result, session, setup, emotion, mistake, or source, search notes, and sort; the trade page shows entries and exits, the stop loss that defines 1R, R multiple, holding time, session, each MT5 fill, and a price movement bar; each trade can record setup, emotion, mistake, a 1–5 rating, whether the plan was followed, notes, and chart screenshots (drag and drop or paste).
  • Analysis by symbol: each symbol is given a verdict (edge, leak, break-even, or too few trades), an independent equity curve, and breakdowns by trading session, day of week, direction, setup, exit type, holding time, emotion, and mistake, with plain-language insights; broker suffixes are automatically merged (e.g., EURUSD.m, XAUUSD+, #US30).
  • Behavioral risk alerts: flags revenge trading, overtrading, widening stop losses, exiting too early, adding to positions after losses, and losing sessions, and calculates the dollar cost of each behavior.
  • AI coach: connects to Claude Desktop or Claude Code via MCP, using the user's existing Claude subscription with no API key required; supports weekly, monthly, per-symbol, and per-trade reviews, generating strengths, weaknesses, psychology, action plans, and if/then rules, and checking against the user's own written trading rules; it can also take dictation of trades from other brokers for Claude to record and deduplicate against MT5. MThe CP server provides 16 tools, including log_trade, annotate_trade, find_trades, get_trade, get_performance, get_instrument_breakdown, get_calendar, get_behavior_report, get_coaching_context, save_ai_report, save_trade_feedback, write_day_note, list_tags, set_trading_rules, sync_mt5, delete_trade.
  • Other: Demo mode includes 200+ realistic trades; on macOS it auto-starts after login and syncs in the background; precise calculations (trades grouped by MT5 position, partial closes volume-weighted, netting reversals split, broker server time with New York close DST conversion).

How to use:

  1. Install uv (automatically installs Python 3.13); the AI coach requires Claude Desktop (optional).
  2. Connect MT5: copy mt5/TradeJournalSync.mq5 to the terminal's MQL5/Experts/TradeJournal/ and compile it with MetaEditor; in the MT5 Navigator, drag TradeJournalSync onto any chart and keep it open; history is imported immediately and new trades arrive within seconds. The EA contains no trading code, so Algo Trading can remain off.
  3. Optionally keep it running: on Windows, install-service prints the schtasks command; on Linux, it prints the systemd user service command.
  4. AI coach: after the one-time connection, fully quit and reopen Claude Desktop, ask for the trade count to verify, and select Always allow; for Claude Code, run the claude mcp add command printed by uv run tj mcp-config.
  5. Settings: display time zone, broker server time (Auto handles New York close brokers), UTC sessions, revenge window, maximum trades per day, early exit threshold, my trading rules.

Use cases: traders of MT5 forex, gold, indices, etc., including proprietary trading firmchallenge accounts, demo or live accounts; both hedging and netting accounts are supported.

Limitations: currently only MT5 is supported (an MQL4 version is on the roadmap); CSV import from other platforms is not supported; multi-currency account aggregation is not supported; the AI coach is used only through Claude Desktop or Claude Code with the user's own Claude plan; the AI coach only reviews process and discipline based on the user's statistics and does not provide investment advice or recommend trades; the software is for journaling and educational purposes only, and trading carries high risk.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools