Trade Journal with Excursion Stats and Screenshots

  • Utilities
  • Kazuma Uezono
    Kazuma Uezono
    MQL5 / MQL4 / Pine Script v6 developer and active trader.
    Seller on the MQL5 Market (indicators for MT4/MT5).
    Services:
    - TradingView Pine Script to MT5/MT4 conversion (bar-by-bar matching, with tester report)
    - MT4 to MT5 migration
  • Version: 1.2
  • Activations: 5
Trade Journal with Excursion Stats and Screenshots is a utility Expert Advisor for MetaTrader 5 that keeps a journal of your closed trades. For each closed position it writes one row to a CSV file: open and close, profit, commission and swap, MAE and MFE (Maximum Adverse Excursion: how far the price went against the trade; Maximum Favorable Excursion: how far it went in its favor), the R multiple and the holding time. It also builds an HTML summary and, when a chart of the symbol is open, saves a chart screenshot at entry and at exit. It records your manual trades and the trades of your other EAs; you can filter by symbol and magic number.

It is a record of past trades, not a trading strategy. It gives no buy or sell signals, does not judge whether a trade or a method is good, and does not promise or improve any result. It never opens, closes or changes a position or an order on a real or demo account. (Only in the Strategy Tester it opens small demonstration trades; see Notes and Limits.)

Privacy: the EA does not write your account number, server name or balance to the files or the screenshots, and the panel does not show them. The folder uses a journal name you choose (default "MyJournal"). To stop two accounts from mixing in one journal, owner.txt keeps only a short hash, not the account number or the server name. Screenshots show the chart only; anything that other indicators, EAs or chart comments draw on the same chart is captured as it is.

Features
- CSV journal (journal.csv), one row per closed position, 32 columns: position ID, symbol, side, lots, open and close time and price, initial SL and TP and their source, profit, commission, swap, net, pips, holding time, MAE and MFE (price distance, pips, money), the data source of MAE/MFE, risk money, R multiple, entry and exit image, magic number, comment and a note (for example close: SL, close: TP, partial closes).
- HTML summary (journal.html): number of trades, net total, average R, average MAE and MFE (in pips for FX and in R) for all trades, wins and losses; distribution tables of MAE and MFE in R and in pips; the newest trades with links to their images. All figures are calculated only from the trades in your journal.
- Chart screenshots (PNG) at entry and at exit, saved in the images folder of the journal and linked from the HTML.
- MAE and MFE are updated on every tick while a trade is open. Periods when the EA was not running are filled from tick history when available, otherwise from M1 bars.
- On start, closed trades of the last N days that are not yet in the journal are added (default 7 days).
- No duplicates: written trades are remembered, so a restart, a timeframe change or a second chart with the same journal name does not write a trade twice.
- Filters: symbols, magic numbers, manual trades on or off.
- Panel: journal name, recorded trades, trades being watched, the last recorded trade and status messages. English or Japanese (automatic from the terminal language); the HTML uses the same language.
- CSV separator: comma or semicolon (for Excel in regions that use a decimal comma).

Main Inputs
- Trades to record: symbols (empty = all), magic numbers (empty = all EAs), include manual trades (default ON), on start add unrecorded closed trades of the last N days (default 7, 0 = none).
- Files: journal name = folder name (default "MyJournal"; not your account number), CSV separator (new file only), HTML summary ON/OFF, number of newest trades listed in the HTML (default 1000).
- MAE / MFE: price used (closing price side = Bid for buys and Ask for sells, default; or the chart price Bid for both), fill missed periods from tick history (default ON) for periods up to N hours (default 24; longer periods use M1 bars).
- Screenshots: ON/OFF (default ON), image width and height (default 1280 x 720).
- Panel (show, language, corner, offsets, font size) and Strategy Tester demo trades ON/OFF.
- 21 inputs in 6 groups.

How It Works
- Files are written to MQL5\Files\TradeJournal\<journal name>\ : journal.csv, journal.html, the images folder and small helper files (written_ids.txt, open_state.txt, owner.txt). Open it with File > Open Data Folder.
- MAE and MFE are distances from the open price, recorded as positive values in price, pips and money. By default buys are measured with Bid and sells with Ask (the price at which the trade would close). An input switches to the chart price (Bid) for both.
- While the EA runs, MAE and MFE are counted from the tick history of each symbol, so no tick is skipped.
- Periods when the EA was not attached or was stopped are filled from tick history (up to the hours you set) or from the highs and lows of M1 bars. The column mae_mfe_source shows tick, bar or tick+bar, and "(incomplete)" when data was missing.
- Bar of entry and bar of exit: only the part after the entry and before the exit is used. With tick history this part is measured tick by tick. Without tick history, only the close of the entry bar and the open of the exit bar are used; the high and low of those two bars are not included, because they may lie before the entry or after the exit. Moves inside those two bars can therefore be missed. A period shorter than one minute uses only the open and close prices.
- When sells are measured with Ask and M1 bars are used, the spread of that bar is added to the bar values, so these values are estimates.
- To read the bars and ticks of a symbol, the EA may add that symbol to Market Watch (SymbolSelect).
- Pips are shown only for symbols quoted with 3 or 5 decimals (normally FX pairs); 10 points = 1 pip. For other symbols (gold, indices, crypto and so on) the pips columns are empty; use the price and money columns. The pips tables and averages in the HTML use FX trades only. If your broker quotes a non-FX symbol with 3 or 5 decimals, it gets a pips value too.
- R multiple = net result (profit + commission + swap) / initial risk. Initial risk = distance from the open price to the first stop loss x lots, converted to account currency at the rate when the trade is recorded. The first stop loss is taken from the order that opened the position. Trades without a stop loss have an empty R.
- Netting accounts: added volume uses the average open price. A position that was reversed gets n/a for MAE/MFE and no R.
- Screenshots are taken only when a chart of the trade's symbol is already open in the terminal. If none is open, the journal shows "no chart"; the EA never opens a new chart. If saving fails, the journal shows "failed", the panel shows a message and recording continues. Other values: "off" (screenshots OFF) and "EA off" (the EA was not running at that moment).

Notes and Limits
- Not a signal and not an evaluation. The figures describe your past trades. How you read them and how you trade remain your decision. Past results do not show future results.
- MAE/MFE filled from M1 bars are approximate, and moves inside the entry and exit bars can be missed when no tick history is available.
- Use one journal name per account. If another account uses the same journal name, the EA stops recording and asks for another name. If you log in to another account while it runs, it stops recording until you attach it again with another name.
- If the same journal name runs on two charts, only one chart writes. The other waits and takes over if the first one stops (within about 15 seconds).
- While journal.csv is open in Excel, it cannot be written. The EA retries every 5 seconds and shows this on the panel; trades are kept and written when the file is free. To look at the data while recording, open a copy.
- The EA records only while MetaTrader 5 is running. Trades closed while it was off are added at the next start when they are within the last N days.
- Strategy Tester: with "Tester only: small demo trades to show the journal" ON (default), the EA opens small demonstration trades so that the journal can be seen: minimum lot, magic 73250, at most one per day, buy and sell in turn, each with a stop loss and take profit and closed after about 3 hours. They exist only to show the recording; they are not a trading method, not a signal and not aimed at any market time (none are opened around the day change, when spreads are wide). The tester report shows only these trades and is not a trading result; it can be a loss. No screenshots are taken in the tester. These trades never run on a real or demo account.

Compatibility and Support
- MetaTrader 5 (hedging and netting accounts). The MetaTrader 4 edition is sold separately.
- Attach it to one chart. For screenshots, keep a chart of each symbol you trade open.
- No DLLs, no internet, no outside server. All files stay on your computer.
- Try it on a demo account first.
- Support through MQL5 messages, reply within 3 business days: installation, settings, files and bug reports. We cannot review or rate your trades, suggest stop or target levels, give market views or trade decisions.
- No result of your trading is promised or implied.
More from author
Elliott Wave Auto Count for MetaTrader 4 labels Elliott waves automatically on four degrees at the same time: the base degree and the three degrees above it. It follows the rules and guidelines of "Elliott Wave Principle" (Frost & Prechter), and for the current wave it shows a price x time target zone and an invalidation level. It is meant for MT4 traders who use Elliott wave analysis and want a rule-based starting count, with the alternate count and the invalidation level always visible. It is
Fibo Price Time Zones combines Fibonacci price levels with Fibonacci time targets and draws them on the chart as boxes (price x time zones). Where boxes from several waves and from up to two higher timeframes overlap, the area is emphasized in three levels. It is meant for traders who already use Fibonacci retracements and extensions and also want to see roughly when a level is worth watching, without drawing every tool by hand. It is a display tool only: it gives no buy or sell signals and doe
Supply & Demand Zones marks supply and demand zones on a MetaTrader 5 chart with one fixed, fully published rule: a strong bar (body at least X times ATR) that leaves a short "base" of small-body bars behind it. The base becomes a demand zone when the strong bar is bullish and closes above it, or a supply zone when the strong bar is bearish and closes below it. Each zone shows its state: fresh, touched with a count, or broken. It is meant for traders who draw these zones by hand and want them d
FREE
RSI AutoScale is a clean, lightweight RSI for traders who use both TradingView and MetaTrader 5 and want the two charts to look the same. WHAT IT SHOWS - RSI (Wilder smoothing): the same values as the standard RSI, with any applied price. - Signal line on the RSI: SMA, EMA, SMMA or LWMA, with its own period. - Levels: upper, middle and lower lines (70 / 50 / 30 by default). They use MT5's native levels, so they reach the right edge and their values appear on the scale. - Zone fills: the middle
FREE
Stoch RSI Band Fill is a Stochastic RSI indicator for MetaTrader 5. MT5 does not include a built-in Stoch RSI, so this indicator adds one. It follows the same calculation steps as the built-in Stoch RSI on TradingView and uses the same layout: K and D lines, 80 / 50 / 20 levels and a shaded band between the upper and lower levels. CALCULATION, STEP BY STEP 1. RSI of the selected price (default: close, length 14), smoothed with Wilder's method (RMA). The first average is the simple average of the
FREE
Pivot Points Six Types with Level Alerts is a TV-compatible pivot point indicator for MetaTrader 5. It uses the same formulas and the same period boundaries as the "Pivot Points Standard" indicator that comes with TradingView, and it draws the levels the same way: short horizontal lines that start at the first bar of each period, with "R1 (price)" style labels in orange (#FB8C00). SIX CALCULATION TYPES The levels are calculated from the high, low and close of the previous period. - Traditional
FREE
Supertrend Trend Fill with Change Alerts is a TV-compatible Supertrend for MetaTrader 5. It uses the same calculation as the "Supertrend" indicator built into TradingView and draws it the same way: a green line below price in an up trend, a red line above price in a down trend, and a light fill between the line and the middle of each candle body. Supertrend shows the direction of the trend. It is a charting aid, not a buy or sell signal, and it does not predict where price will go. HOW IT IS C
FREE
MACD Four Color Histogram is a MACD for MetaTrader 5 that uses the same formula and the same look as the built-in MACD on TradingView. It is made for traders who use both platforms and want the MACD on each chart to read the same way. HOW IT DIFFERS FROM THE MT5 STANDARD MACD - MT5 standard MACD: the histogram is the MACD line itself, and the signal line is an SMA. - This indicator: three parts, as on TradingView. MACD line, signal line, and histogram = MACD - signal. The histogram has 4 colors.
FREE
VWAP Band Fills with Anchored VWAP is a TV-compatible VWAP for MetaTrader 5. It uses the same formula as the built-in "VWAP" indicator of TradingView (Pine ta.vwap), offers the same inputs - anchor period, source, offset, standard deviation or percentage bands #1 to #3 - and draws it the same way: a blue VWAP line, green / olive / teal bands and light fills between them. An optional anchored VWAP starts from a vertical line that you drag to any bar. HOW IT IS CALCULATED For every bar of the cu
FREE
Prior Day Week Month Levels with Touch Alerts draws the previous day, week and month high and low on your MetaTrader 5 chart as clean horizontal lines with labels at the right edge, in the style of TradingView. It can also show the previous day's close and today's open. LEVELS - PDH / PDL: previous day high and low (blue #2962FF, solid) - PWH / PWL: previous week high and low (orange #FF9800, dashed) - PMH / PML: previous month high and low (purple #9C27B0, dash-dot) - PDC: previous day close (
FREE
Candle Countdown Tag with Spread shows how long the current candle has left, in a small colored tag right next to the last candle - the way TradingView shows its bar countdown. The same tag can also show the current spread, the time left of up to two more timeframes and the open time of the next candle. It is a display tool for MetaTrader 5: no alerts, no signals, no trading. WHAT IT SHOWS - Time left of the chart timeframe: mm:ss under one hour, hh:mm:ss under one day, "2d 04:15:30" for longe
FREE
Do you mark supply and demand zones by hand and get a slightly different result every time? This free MetaTrader 4 indicator draws them with one fixed rule that is written out in full below, so you can check every zone yourself. The idea: a strong candle (body at least X times ATR) leaves a "base" of 1 to 10 small candles right before it. A bullish strong candle that closes above the base turns it into a demand zone; a bearish one that closes below it turns it into a supply zone. The indicator
FREE
This is the MetaTrader 4 edition of RSI AutoScale. It draws the standard Wilder RSI with a signal line, a shaded band between the levels, colored areas where the RSI leaves that band, and a choice of three scales. It is meant for traders who use TradingView and MetaTrader 4 side by side and want the RSI pane to look much the same on both. HOW IT LOOKS ON MT4 - RSI line: the same values as MT4's built-in RSI for the same period and applied price. - Signal line: a moving average of the RSI (SMA, E
FREE
Supertrend Trend Fill with Change Alerts MT4 brings a TV-compatible Supertrend to MetaTrader 4. If you also use TradingView, you know its built-in "Supertrend": a green line under price while the trend is up, a red line over price while it is down, and a soft colored band between the line and the candles. This MT4 indicator reproduces that calculation and that look. What it is for: seeing the current trend direction and where it would flip. What it is not: a buy or sell signal or a forecast. A
FREE
A MetaTrader 4 MACD built to read like the MACD you see on TradingView: a MACD line, a signal line, and a histogram of the gap between them, colored in four shades. If you switch between the two platforms during the day, the MACD pane on your MT4 chart will look and behave the way you are used to. WHY NOT THE MT4 BUILT-IN MACD? MT4's own MACD draws the MACD line as gray bars and smooths the signal line with an SMA. There is no separate histogram and no color change. This indicator calculates the
FREE
MetaTrader 4 ships with a Stochastic and an RSI, but not with a Stochastic RSI. This indicator fills that gap for MT4 users and is built to be TV-compatible: it follows the calculation of the Stoch RSI that comes with TradingView, and the pane looks the way TradingView users expect - a blue K line, an orange D line, dashed 80 and 20 levels, a dotted 50 line and a light band between 80 and 20. WHAT APPEARS IN THE SUBWINDOW - K and D lines. The Data Window lists only K and D. - Upper band (80) a
FREE
Pivot Points Six Types with Level Alerts MT4 brings TV-compatible pivot points to MetaTrader 4. If you also chart on TradingView, you know its built-in "Pivot Points Standard". This MT4 indicator reproduces it: the same six calculation methods, the same period choices from one day to ten years, and the same look - an orange (#FB8C00) line for each level, starting at the beginning of each period, labelled like "S2 (1.08345)". WHICH LEVELS EACH METHOD GIVES Method | Levels drawn | Note Tradition
FREE
Prior Day Week Month Levels with Touch Alerts MT4 puts yesterday's, last week's and last month's high and low on your MetaTrader 4 chart, drawn the way TradingView users are used to seeing them: thin horizontal lines with a short label and price at the right edge. Optional extras: previous day close and today's open, and an alert when price touches a line. WHAT YOU SEE Line | Meaning | Default look PDH | previous day high | blue #2962FF, solid PDL | previous day low | blue #2962FF, solid PWH |
FREE
VWAP Band Fills with Anchored VWAP MT4 brings the VWAP of TradingView to MetaTrader 4. If you use TradingView's built-in "VWAP", you will find the same inputs here (Anchor Period, Source, Offset, Bands Calculation Mode, Bands Multiplier #1 to #3, Hide VWAP on 1D or Above), the same formula (Pine ta.vwap) and the same colors - plus an anchored VWAP that starts wherever you drag a vertical line. THE FORMULA Within each anchor period, bar by bar: VWAP = sum(source x tick volume) / sum(tick volume
FREE
Candle Countdown Tag with Spread MT4 puts a TradingView-style countdown on your MT4 chart: a small tag beside the last candle that tells you when the bar closes, together with the current spread. Optional extra lines show the time left of two more timeframes and when the next candle opens. Nothing else - it does not trade, alert or give signals. ONE TAG, UP TO FIVE LINES Line | Example | Setting Chart timeframe | 12:41 | on by default Extra timeframe 1 | H4 02:12:41 | off (choose a timeframe t
FREE
Dow Structure MTF shows the Dow theory trend of five timeframes at once in MetaTrader 4, using the pullback low / rally high method that is common among Japanese traders. For each timeframe it shows whether the trend is up, down or range, which price would change it, and how far the current price is from that price. Only closed bars are used, so a confirmed result does not change afterwards (no repaint). It is meant for traders who check the trend structure of several timeframes by hand and wan
Fibo Price Time Zones for MetaTrader 4 combines Fibonacci price levels with Fibonacci time targets and draws them on the chart as boxes (price x time zones). Where boxes from several waves and from up to two higher timeframes overlap, the area is emphasized in three levels. It is meant for MT4 traders who already use Fibonacci retracements and extensions and also want to see roughly when a level is worth watching. It is a display tool only: it gives no buy or sell signals and does not place ord
Time Average Lines draws four averages measured by time, not by the number of bars, so each line keeps the same length of time when you switch timeframes: a time moving average, a TWAP, a same-time-of-day average and a time-based EMA. For the same-time average, the rest of today is shown as a dotted path that joins the past averages; the path is a summary of the past, not a forecast. It is meant for intraday traders who want averages that mean the same thing on M1 and on M15, and who want to co
Auto Trendline Channel MTF draws trendlines, parallel channels and horizontal support / resistance automatically from confirmed swing highs and lows in MetaTrader 4, and records for each line the touch count, close breaks, wick breaks and retests. A table shows, for the chart timeframe and two higher timeframes, the nearest line above and below the price, the distance to it and the Dow theory direction. It is meant for traders who draw trendlines and levels by hand and want them drawn by fixed,
Currency Strength Meter for MetaTrader 4 combines the 28 pairs of the 8 major currencies (USD, EUR, JPY, GBP, AUD, NZD, CAD, CHF) into one strength line per currency, with a ranking table for the chart timeframe, M15, H1, H4 and D1. The full formula is published below. It is meant for MT4 traders who compare currencies before choosing which pair to look at, and who want to know exactly how the numbers are made. It is an analysis aid: it does not tell you when to buy or sell and does not show fu
Trade History Stats Panel for MetaTrader 4 reads the closed trades in your own account history and sums them up in a panel on the chart: number of trades, win rate, profit factor, average P/L per trade, drawdown of the closed-trade curve, holding time, buy / sell, and tables by month, symbol, weekday and hour. It is meant for traders who want to look back at their own past trades, like a trading journal that fills itself in, and to check the numbers by period, symbol or magic number. It never p
Prop Challenge Loss Tracker for MetaTrader 4 shows, in a panel on the chart, how much room is left before the daily loss limit and the maximum loss limit of a funded-account (prop) challenge are reached, and sends staged alerts as the limits are used up. It is meant for traders taking a prop challenge who want to see their remaining loss room at a glance, set to the rules of their own program. It is a display and alert tool only: it never opens, modifies or closes any order. Whether a limit is
Market Structure Liquidity Map for MetaTrader 4 draws smart money concepts (SMC) style market structure on the chart: swing labels, break of structure (BOS), change of character (CHoCH), equal highs and lows, previous day and week levels, liquidity sweeps and unfilled fair value gaps (FVG), with a small table for the chart timeframe and two higher timeframes. It is meant for MT4 traders who read structure and liquidity by hand and want the same levels drawn the same way every time. It is a disp
Divergence Detector for MetaTrader 4 finds regular and hidden divergences between price swings and one oscillator of your choice (RSI, MACD histogram, Stochastic %K, OBV, CCI or Momentum) and draws them on the price chart and in the indicator window, with a small table for four other timeframes. It is meant for MT4 traders who look for divergences by eye and want them found by fixed, visible rules on closed bars. It is a display tool only: it gives no buy or sell signals and does not place orde
Multi Symbol Market Scanner Panel shows up to 30 symbols in one table on your MT4 chart: trend direction, RSI and ATR% on M15, H1, H4 and D1, plus today's range, distance from yesterday's high or low and a simple H1 / H4 swing structure. Click a symbol name to switch the chart to it. It is meant for MT4 traders who watch many forex pairs, metals or indices and want one overview instead of opening many charts. It is a display tool only: it gives no buy or sell signals, does not rank symbols to t
Filter:
No reviews
Reply to review