Discussing the article: "Where should your stop-loss really sit? An MAE/MFE excursion analyzer in MQL5"
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Check out the new article: Where should your stop-loss really sit? An MAE/MFE excursion analyzer in MQL5.
Stop-loss and take-profit placement is usually the least-measured decision in a trading system. This Expert Advisor reads your closed history, replays M1 price between each entry and exit to measure Maximum Adverse and Favorable Excursion per trade, and splits winners from losers. From the distributions and trade efficiency it derives data-driven stop and target levels - measured from your own account, not a rule of thumb. Analysis only; it does not trade.
Most traders still set stop-losses and take-profits by habit — a round number, a fixed risk-reward ratio, or the indicator's default — and then wonder why good entries are stopped out by noise or why winners are cut short. The answer is already in the account: past trades encode how far price actually ran for and against each entry. Extracting that information consistently is all it takes to turn guesswork into measurement.
This article presents an Expert Advisor, the MAE/MFE Excursion Analyzer, that does exactly that. Given a symbol (and an optional magic number) and a window of closed history, it reconstructs each round-trip from the deal records, reads the M1 candles between entry and exit, and reports per-trade MAE (maximum adverse excursion), MFE (maximum favorable excursion) and efficiency. From those distributions it produces concrete, strategy-specific guidance: a stop suggestion (for example, winners' p90 MAE), a target suggestion (for example, winners' median MFE), and a CSV of every trade, while making clear that this is an analysis instrument, not a trading robot and not financial advice. Note that the method requires an existing history of closed trades for the symbol or strategy you want to study.
This tool is for analysis and diagnostics. It reads history and does not place orders. It is not financial advice.
Author: Silvina Duarte