Win/Loss Calendar Exporter
A per-trade list or an equity curve tells you how much was made or lost, not which days it happened on. A losing streak that clusters on Fridays, or around the first of the month, or right after a big win the day before, is a calendar-shaped pattern that a straight list of trades does not show directly. This script scans closed-trade history for one target month, sums net profit (profit plus swap plus commission) per calendar day, and lays the results out Monday-first in a proper week grid - blank cells before the 1st and after the month's last day, just like a wall calendar. It writes the same grid twice: a CSV for further analysis in a spreadsheet, and an HTML file where each day is shaded green, red or grey so the shape of the month is visible at a glance without opening anything else. Net result and trade count are both shown per day, so a day with one large loss reads differently from a day with five small ones even though the total may be similar. Notes and limitations One month per run - for a multi-month view, run it once per month and keep the files; it deliberately does not try to squeeze several months into one grid. Day grouping uses the trade's close time in the terminal's server timezone, which may differ from the trader's local day boundary. Net result per day is realised P/L only; open positions carried across a day boundary are not split or attributed to either day.
Script · MT5 · v1.0 · Free
About Win/Loss Calendar Exporter
Win/Loss Calendar Exporter is a script for MetaTrader 5. It can alert you with a pop-up, sound, email or push message. It has 4 settings, such as Month anchor, Current symbol only and Magic filter. MQL source code included.
Files in the download: WinLossCalendarExporter.ex5, WinLossCalendarExporter.mq5, WinLossCalendarExporter.txt.
Settings
| Setting | Default | What it does |
|---|---|---|
| Month anchor | 0 | Any date inside the target month (1970.01.01 = current month) |
| Current symbol only | false | Only this chart's symbol |
| Magic filter | -1 | Magic number filter (-1 = all) |
| Output folder | WinLossCalendar | Subfolder under MQL5\Files |
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 → Scripts.
- 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 script onto a chart to run it once.
Tags: Grid · Alerts · MT5 Script · MQL5 Source Code