Auto-Journal

The Journal EA (Mytradr.ex5) handles automatic trade journaling from MT5 to the MyTradr server.

Why Auto-Journal?

The number-one journal killer is friction. Every trader who has tried manual journaling knows the cycle: you start with enthusiasm, meticulously logging each trade with your entry price, stop-loss, take-profit, emotions, and notes. Twenty trades in, you are still going strong. Then you have a busy day and skip a few. Then a busy week. Then you open the journal a month later, see the gap, and never come back.

This is not a discipline problem — it is a design problem. Manual journaling asks you to do tedious data entry after every single trade for the rest of your trading career. That is not realistic for most people.

Auto-journal solves this by removing the manual step entirely. Your trades flow from MT5 to your journal automatically, in the background, with complete accuracy. You never have to type in a ticket number, look up an entry price, or calculate a P&L. It is all there, every time.

The Manual Journaling Problem

Here is what typically happens without auto-journal:

Week 1: You set up a spreadsheet or journal app. You log every trade carefully. It takes about 5 minutes per trade. You feel organized and professional.

Week 2-3: You are still logging, but you start skipping the fields that feel tedious. Notes get shorter. You forget to log one trade and fill it in from memory the next day (getting some details wrong).

Week 4-6: You had a bad week and do not feel like revisiting those trades. You tell yourself you will catch up on the weekend. You do not.

Week 8+: The journal has a three-week gap. Filling it in retroactively feels overwhelming. The journal is effectively dead.

Auto-journal breaks this cycle because there is nothing to forget, skip, or catch up on. Your trades are logged whether you had a great day or a terrible one, whether you are at your desk or on vacation. The data is always complete, always accurate, and always current.

Real-Life Scenarios

The vacation test. You take a week off from trading but leave an EA running on a VPS. When you get back, you open your journal and find every trade already journaled — entries, exits, P&L, timestamps, everything. No data entry backlog waiting for you. You go straight to analysis instead of spending an hour reconciling your trade history.

The pattern you would have missed. At the end of the month, you review your automatically journaled data and notice something: your Friday trades are consistently worse than any other day. Average P&L on Fridays is -$180, while your Monday-through-Thursday average is +$95. You never would have caught this with manual logging because you probably would not have logged half of those Friday trades — they were small, annoying losses that you wanted to forget about. But the EA does not forget, and that pattern is now visible and actionable.

Accuracy you cannot get manually. You close a partial on a XAUUSD position — 0.5 lots at one price, then the remaining 0.3 lots at another. Logging this manually means tracking two deal tickets, two exit prices, two P&L figures, and linking them to the original order. The EA captures all of this automatically, including commissions and swap, giving you a complete and accurate picture of the trade lifecycle.

What Happens Behind the Scenes

For those curious about how trades get from MT5 to your journal, here is the simplified version:

  1. The EA watches your account. It runs quietly on a chart in your MT5 terminal, checking for new completed trades on a regular interval. The EA is read-only — it only reads deal history and never places, modifies, or closes trades. You do not need to do anything — it monitors your deal history automatically.

  2. It packages up the trade data. When it finds new trades, it collects everything: the order details (what you wanted to do), the deal details (what actually happened), prices, volumes, commissions, swap, profit, and all the timestamps.

  3. It sends the data to your MyTradr account. The EA transmits the trade data securely to the server via HTTP. Think of it like your MT5 terminal texting your journal: “Hey, here are the 3 trades that just closed.”

  4. The server processes and stores it. The server receives the data, validates it, and stores it in the database. Within moments, the trades appear in your journal, fully populated and ready for you to review, tag, and analyze.

  5. Trades appear in your journal. Open your journal and they are there — complete with every detail MT5 knows about. You can then add your own tags, emotions, notes, and analysis on top of the automatically journaled data.

How It Works (Technical Detail)

  1. The EA scans your MT5 deal history for completed trades
  2. It builds a JSON payload containing all order and deal data
  3. The payload is sent to the MyTradr server via HTTP POST
  4. The server processes and stores the data in Postgres
  5. Trades appear in your journal

The EA runs on a configurable interval, checking for new deals since the last sync.

Data Captured

Orders

  • Ticket, symbol, order type
  • Volume, open price, SL, TP
  • Timestamps (setup time, done time)
  • Current price, close price

Deals

  • Deal ticket, linked order ticket
  • Deal type, entry direction
  • Volume, price
  • Commission, swap, profit
  • Timestamp

This gives the journal a complete picture of each trade’s lifecycle — from order placement through execution to close. Every partial close, every modification, every penny of commission and swap is accounted for.

Reliability

  • Backup files — The EA writes a local JSON backup before sending, providing a recovery option if the request fails
  • GitHub logging — Server-side logs are flushed to GitHub for audit trail
  • Idempotent processing — Re-sending the same data won’t create duplicate trades. If the EA sends the same trade twice (for example, after a connectivity hiccup), the server recognizes it and skips the duplicate. Your journal stays clean.

Setup

  1. Attach the EA to a chart in your MT5 terminal
  2. Configure the server URL and API key
  3. The EA begins scanning deal history on the configured interval

Select which MT5 accounts to auto-journal from in Account Settings -> Trading Defaults -> MT5 Trade Journal Accounts.

Once configured, the EA runs silently in the background. You do not need to interact with it, restart it, or check on it. If you want to verify it is working, just open your journal after your next closed trade — it will be there.