Exit Checklist Panel
Entry-side discipline gates are common; this covers the exit side, where panic closes on a single noisy candle are just as damaging as impulsive entries. The panel shows a "Pick Newest Open Ticket" button that selects the most recently opened market order on the current symbol (filtered by magic number if set), and four checklist items that must each be clicked to a green checked state before the "Close Selected" button turns from grey to active green. Switching the selected ticket automatically clears every checkbox, so a stale confirmation from a previous trade can never carry over onto a different one. This gates only the button this panel draws. It has no way to intercept a manual close made from the terminal's own Trade tab or another EA/script - that limitation is stated plainly rather than implied away, since a discipline tool that quietly claims more coverage than it has is worse than one that is honest about its scope. Notes and limitations Only market orders (OP_BUY/OP_SELL) on the chart's own Symbol() are ever offered by "Pick Newest Open Ticket" - there is no full order-picker list, which keeps this a low-effort, single-purpose gate rather than a general position manager. If the selected ticket is closed by any other means before this panel's button is clicked, the close attempt fails cleanly and reports it rather than affecting a different ticket. Retryable broker errors (requote, busy, off-quotes) are retried up to three times with a short pause; permanent errors are reported immediately.
Expert advisor · MT5 · v1.0 · Free
About Exit Checklist Panel
Exit Checklist Panel is an expert advisor (trading robot) for MetaTrader 5. It has 5 settings, such as Corner, X offset and Y offset. MQL source code included.
Files in the download: ExitChecklistPanel.ex5, ExitChecklistPanel.mq5, ExitChecklistPanel.txt.
Trading robots can lose money. Check every setting and test on a demo account before using real funds.
Settings
| Setting | Default | What it does |
|---|---|---|
| Corner | 0 | Panel corner: 0=top-left 1=top-right 2=bottom-left 3=bottom-right |
| X offset | 12 | Panel offset from the chosen corner, X pixels |
| Y offset | 18 | Panel offset from the chosen corner, Y pixels |
| Magic filter | 0 | Only list positions with this magic number, 0 = list every position on this symbol |
| Slippage | 30 | Slippage in points passed to CTrade |
How to install
- Download the ZIP from your PolyMaria library and unzip it.
- In MetaTrader 5 open File → Open Data Folder, then go to MQL5 → Experts.
- Copy the .mq5 file(s) there. Put any .mqh files in MQL5 → Include.
- Open the .mq5 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
- Drag the expert advisor from the Navigator onto a chart, check the settings, allow Algo/Auto Trading and press OK.
- Test it first on a demo account or in the Strategy Tester.
Tags: MT5 Expert Advisor · MQL5 Source Code