Discussing the article: "Your Take Profit Is a Guess Until You Log MFE: Building an Excursion Recorder in MQL5"

Check out the new article: Your Take Profit Is a Guess Until You Log MFE: Building an Excursion Recorder in MQL5.

A compact MFE/MAE recorder in pure MQL5 samples excursion while a position is open and writes one CSV row per closed position, measured in R and frozen at entry. A companion script prints a reach-rate table per asset class: the share of trades that ever reached each level. In a 226-position sample, three of the four classes never reached the 3R target the system was using. Use it to test whether a target is reachable before trusting it.

Most of us set a take profit the same way. We pick a risk:reward ratio that sounds respectable — 1:2, 1:3 — we backtest it, the curve looks acceptable, and we ship it. The number survives because nothing we habitually look at asks the question that matters: do the trades actually get there?

A profit factor cannot answer that per position or per class, and nor can win rate, equity curve or drawdown. Those describe what happened after your exits fired.

MetaTrader's own extended tester report does go further. It includes MFE-Profits and MAE-Profits Distribution charts, together with the MFE- and MAE-versus-profit correlation charts, and hovering a bar gives you the numbers behind it. That is genuinely useful, and if a single pooled histogram over the whole book is what you need, stop here and use it.

What it cannot do is answer the question per position and per class. Its excursion is pooled across every symbol and expressed in profit, not in R frozen at entry — so a $50 MFE on EURUSD and a $50 MFE on BTCUSD land in the same bucket. It gives you no row per ticket, so you cannot join excursion to the ladder rung that was live, the entry filter that fired, or the asset class the trade belonged to. And it cannot tell you what share of your FX trades ever reached 1.5R, because that is a reach rate by class, not a distribution over the book.

This article builds the missing piece: a small, self-contained MFE/MAE recorder. It writes one CSV row per closed position in R, tagged by symbol and open time. The open time is the first CSV column, so you can join rows to external trade logs by entry timestamp. A companion script then reads that file and prints the reach-rate table per asset class.

One position: what the terminal already gives you, and what the recorder adds

Author: Emmanuel Nawita Were