What it does
The terminal history lists deals: a position closed in two parts appears as three lines, and a netting reversal as one deal that closes one position and opens another. This tool rebuilds the positions from the deals and writes one CSV row per closed position.

| Column | Meaning |
| ticket | Position identifier. |
| symbol, magic, comment, side, volume | Taken from the opening deal. Volume is the total volume opened. |
| entry_time, entry_price | First entry (volume-weighted price if the position was scaled in). Broker server time. |
| exit_time, exit_price | Last exit time; volume-weighted exit price when closed in parts. |
| duration_min, duration | Time in the market. |
| sl, tp | Initial stop loss and take profit from the opening order. Empty when none was set with the order (a stop added later by modification is not known). |
| gross_profit, commission, swap, net_profit | Summed over all deals of the position. Commission includes fees. |
| risk_money, r_multiple | Money lost if the initial SL was hit, and net result divided by it. Empty when there was no SL. |
| mfe_points, mae_points | Maximum favourable / adverse excursion in points, from the M1 bars between entry and exit. |
| mfe_money, mae_money | The same excursions in account currency for the traded volume. |
| m1_bars | Number of M1 bars used. |
| session, weekday | Session and weekday of the entry. |
| close_reason | SL, TP, Expert, manual, stop out, etc. |
Why it is useful
Inputs
How to use it
Notes and limits
Xander Grid RSI Gold
XAUUSD grid EA that opens a basket when RSI leaves oversold or overbought on a closed candle, adds levels with a lot multiplier and closes the basket at a money or points target. Open source code.
Trade Manager Utility
Manages positions that are already open: it adds a missing SL/TP, moves the stop to break even, trails it, caps the position count and applies daily equity limits. It never opens trades.
Daily Loss Guard - daily loss and total drawdown limits for funded / prop-firm accounts
Utility Expert Advisor that watches the account equity against two limits: a maximum daily loss and a maximum total drawdown. Each limit can be set as a percentage or as a money amount, and the daily loss can be measured from the balance or from the equity at the start of the day, as many prop firms do. When a limit is touched the EA closes all positions, deletes all pending orders and keeps the account locked until the next trading day: anything opened in the meantime, by another EA or by hand, is closed again. Optional early warning at a percentage of the limit (Alert and push), a small on-chart panel, a magic number / symbol filter, a configurable day-reset time and retries when a close fails. The state is stored in terminal global variables, so a restart does not unlock the account. Works on hedging and netting accounts. No DLLs, no web requests. It never opens trades (only the optional Strategy Tester demo mode does).
Candle Pattern Stats - engulfing, pin bar and inside bar with a rolling historical hit rate
Marks bullish and bearish engulfing, bullish and bearish pin bar and inside bar patterns with arrows, using closed bars only, so nothing repaints. The definitions (wick and body proportions, minimum bar size in ATR) are inputs, with an optional EMA trend filter. For each pattern a small panel shows a rolling historical statistic: the share of the last N resolved cases where price moved X ATR in the pattern direction before moving Y ATR against it, together with the number of cases. X, Y, N and the waiting time are inputs. The numbers describe what happened on your chart history; they do not predict the next trade. Optional alerts on closed bars (popup, push, sound). 20 buffers (signal, hit rate and sample size per pattern) can be read with iCustom(). Uses prev_calculated, deletes its chart objects when removed. Read-only: it never trades. No DLLs, no web requests.