Loading…

Journal Completeness Auditor

A journal habit usually fails quietly. A missing file is easy to notice in a folder listing sorted by date; a file that exists, opens fine, and still only contains the blank template - six headings, no answers written under any of them - looks complete at a glance and is the gap that actually matters, because it means the trade was opened for review and then abandoned rather than never started. This script reads the closed-trade history and, for each trade, looks for a journal file named the way a companion template tool writes them: "Journal_<ticket>_<symbol> _<date>.txt", with a key: value header followed by a "--- REFLECTION ---" section. It checks three things per trade: does a matching file exist at all; if it exists, does the reflection section hold any real text or only the six blank headings; and did the trade close with an empty comment, which - since this catalogue's tagging convention uses OrderComment() as the trade's tag - means it cannot be found later by searching for a setup name. The result is one CSV row per trade plus a summary count of each gap. Notes and limitations Only recognises the specific filename and heading layout described above; a journal kept in a different format or a different folder structure will not be matched and every trade will read as missing a file. "Filled in" is a text-presence check, not a quality check - one word under a heading counts as filled, a thoughtful paragraph and a single "ok" score the same. Balance and credit operations in history are skipped; only OP_BUY/OP_SELL entries are audited.

Script · MT4 · v1.0 · Free

About Journal Completeness Auditor

Journal Completeness Auditor is a script for MetaTrader 4. It can alert you with a pop-up, sound, email or push message. It has 6 settings, such as From date, To date and Current symbol only. MQL source code included.

Files in the download: JournalCompletenessAuditor.mq4, JournalCompletenessAuditor.txt.

Settings

SettingDefaultWhat it does
From date0From close time (1970.01.01 = no lower bound)
To date0To close time (1970.01.01 = up to now)
Current symbol onlyfalseOnly this chart's symbol
Journal folderTradeJournalSubfolder under MQL4\Files holding journal entries
Require tagtrueFlag trades closed with an empty OrderComment as missing a tag
Output fileJournalCompletenessAuditor_Report.csvReport filename (in the journal folder)

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Scripts.
  3. Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
  4. Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
  5. Drag the script onto a chart to run it once.

Download the PDF guide

Tags: Alerts · MT4 Script · MQL4 Source Code

MQL4 & MQL5 scripts · PolyMaria