The terminal's history shows deals, not trades. Trade History Exporter rebuilds each closed trade from its deals and writes one row per trade to a CSV file you can open in a spreadsheet.
Columns: position, symbol, type, volume, open time, open price, close time, close price, points, profit, commission, swap, fee, net, duration, initial stop loss, R multiple (gross), MAE points, MFE points, magic number and comment.

Four demo trades. The first was closed in two parts and is shown as one row.
How the figures are worked out
Inputs

The script's inputs
When it finishes, a message shows the file's full path, the number of trades, the number of winners and the net result.
Inside-Bar Outcome Tracker: Breakout Direction, Failure Rate and Time to Resolve
Finds every inside-bar pattern in the history of your chart and follows it to the end: which side of the mother bar broke first, whether the breakout held or failed within a few bars, and how many inside bars came before it. The histogram marks each breakout, boxes show the patterns on the chart, and a panel gives the statistics for your own symbol and timeframe, split by the number of inside bars and by the size of the mother bar, plus one line that can be pasted into a comment to compare symbols.
Daily Loss Limit Guard - close all and stay flat after the daily limit
A simple account guard: once the day's loss (equity against the balance at the start of the day) reaches your limit, it closes all positions, deletes pending orders and keeps the account flat until the next day. Works on manual trades and on any EA. Never opens trades.
Close By Filter - close positions by side, symbol, magic number and profit
Closes only the open positions that match your filters and, if you choose, deletes matching pending orders. Shows a summary and asks before it acts.
Gold MACD Divergence Map
MACD regular and hidden divergences on closed bars with an honest first-touch statistics panel. Not a trading signal.