Loading…

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 · MT4 · v1.0 · Free

About Exit Checklist Panel

Exit Checklist Panel is a script for MetaTrader 4. It has 5 settings, such as Corner, X offset and Y offset. MQL source code included.

Files in the download: ExitChecklistPanel.ex4, ExitChecklistPanel.mq4, ExitChecklistPanel.txt.

Settings

SettingDefaultWhat it does
Corner0Panel corner: 0=top-left 1=top-right 2=bottom-left 3=bottom-right
X offset12Panel offset from the chosen corner, X pixels
Y offset18Panel offset from the chosen corner, Y pixels
Magic filter0Only list orders with this magic number, 0 = list every order on this symbol
Slippage30Slippage in points passed to OrderClose

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Scripts.
  3. Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
  4. Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
  5. Drag the script onto a chart to run it once.

Download the PDF guide

Tags: MT4 Expert Advisor · MQL4 Source Code

Expert advisors (EA) for MT4 & MT5 · PolyMaria