Skip to main content
Version: 2.0

Journal

The Custom Expert Advisor creates an automated trading journal for each trading module executed with it. The generation and export of these trading journals are always active. A journal is populated with valuable data that can be used to scrutinize the trading module through an Excel file.

Folder path and data organization

The Custom Expert Advisor manages its file and folder outputs within two distinct folders: the live folder for the live variant and the tester folder for the tester variant. You can access these folders via the Windows start menu or through a shortcut configured on your Windows desktop, as shown in the image below.

File Output, Journal, Application folder on desktop and start menu.png

Please refer to the appropriate input folder corresponding to your variant.

Tester variant

You'll find an Excel file named Journal Evaluation as you navigate the tester file structure. This file is designed to import and visualize the journal data exported by the Custom Expert Advisor in CSV format. Please note that this output is updated exclusively by the tester variant. The entire folder hierarchy, commencing from the tester folder, is illustrated below.

File Output, Journal, Folder path and data organization for tester variant.png

Alternatively, you can access the tester Journal output folder by inputting the designated path into your Windows folder browser.

%AppData%\MetaQuotes\Terminal\Common\Files\FEA Trading Tester Data\Custom Expert Advisor Tester 2.0\default\Journal

Live variant

You'll also find an Excel file named Journal Evaluation as you navigate the live file structure. This file is designed to import and visualize the journal data exported by the Custom Expert Advisor in CSV format. Please note that this output is updated exclusively by the live variant. The entire folder hierarchy, commencing from the live folder, is illustrated below.

File Output, Journal, Folder path and data organization for live variant.png

Alternatively, you can access the live Journal output folder by inputting the designated path into your Windows folder browser.

%AppData%\MetaQuotes\Terminal\Common\Files\FEA Trading Live Data\<META_TRADER_INSTANCE_NAME>\Custom Expert Advisor Live 2.0\default\Journal

<META_TRADER_INSTANCE_NAME> shall be your MetaTrader instance name, for example, MetaTrader 4 IC Markets.

Data import

The trading journal's raw output is a CSV file. This file can be used for direct, computer-assisted processing or imported into the pre-formatted Excel journal file. To import the trading data, open the Excel file and click the Import button on the Import sheet.

File Output, Journal, Data import.png

The import process may take a few seconds, depending on the volume of raw journal data. The Excel journal file should be in the same folder as the Final output folder, which contains the raw CSV export generated by the Custom Expert Advisor. The Excel file is automatically generated in the correct folder.

Further down this page, you'll find examples of each automatically generated journal diagram. These comprehensive data diagrams provide an easy-to-understand overview of your trading history. Each diagram can be displayed or hidden according to your visual preferences.

info

It requires installing Microsoft Excel on your computer and enabling the macro feature. Excel will prompt for this when opening the Journal Evaluation file for the first time. Please enable the content. If you are missing the evaluation Excel file, you can download it here.

Diagram - Equity

This diagram illustrates the progression of equity over a series of trades. The vertical axis represents account equity, while the horizontal axis denotes the number of trades executed.

File Output, Journal, Diagram - Equity.png

Diagram - Volume (in lots)

This diagram displays the volume associated with each trade. The vertical axis shows the volume size in standard lots, and the horizontal axis indicates the number of trades executed.

File Output, Journal, Diagram - Volume (in lots).png

Diagram - SL/TP Maxed Out (in %)

This diagram depicts the proximity of the actual price to the stop loss and take profit limits. The vertical axis signifies the price changes in pips towards the stop loss and take profit levels. In contrast, the horizontal axis represents the holding time of a trader, measured in milliseconds. Each trade is denoted by a pair of squares: red and green.

File Output, Journal, Diagram - SL/TP Maxed Out (in %).png

Diagram - Performance (in %)

This diagram demonstrates the performance at the end of each trade. The vertical axis illustrates the performance in percent, starting from zero at the beginning of the journal record. The horizontal axis shows the number of trades executed. Positive values indicate good trading performance and vice versa.

File Output, Journal, Diagram - Performance (in %).png

Diagram - Drawdown (in %)

This diagram portrays the drawdown at the end of each trade. It is represented as a positive percentage value on the vertical axis, with zero indicating a good value. The larger the drawdown, the worse the trading strategy. The horizontal axis illustrates the number of closed trades.

File Output, Journal, Diagram - Drawdown (in %).png

Diagram - Commission, Swap, Profit

This diagram displays each executed trade's commission, swap, and profit. The horizontal axis represents the number of trades, and the vertical axis represents the sum of all fees. Each fee type is color-coded: blue for commission, orange for swap, and gray for profit. A trade is profitable only if the sum of all fees is positive.

File Output, Journal, Diagram - Commission, Swap, Profit.png

Diagram - Slippage Open

This diagram represents the slippage encountered when opening each trade. The horizontal axis illustrates the number of closed trades, while the vertical axis shows the slippage as an absolute price difference. These values can be used to evaluate your broker's order execution quality, with lower values being better.

File Output, Journal, Diagram - Slippage Open.png

Diagram - Slippage Close

This diagram represents the slippage encountered when closing each trade. The horizontal axis illustrates the number of closed trades, while the vertical axis shows the slippage as an absolute price difference. These values can be used to evaluate your broker's order execution quality, with lower values being better.

File Output, Journal, Diagram - Slippage Close.png

Diagram - Execution Time Open (in us)

This diagram illustrates the time required to open each trade. The horizontal axis displays the number of trades, and the vertical axis shows the execution time in milliseconds. Please note that these values are not representative in tester mode; only live trades can be used to evaluate your broker's order execution time.

File Output, Journal, Diagram - Execution Time Open (in us).png

Diagram - Execution Time Close (in us)

This diagram illustrates the time required to close each trade. The horizontal axis displays the number of trades, and the vertical axis shows the execution time in milliseconds. Please note that these values are not representative in tester mode; only live trades can be used to evaluate your broker's order execution time.

File Output, Journal, Diagram - Execution Time Close (in us).png

Raw data as table

This Journal Data sheet contains the raw data identical to the CSV output. This data table is used to generate the above diagrams. As you can see, there are numerous data points available.

File Output, Journal, Raw data as table.png