Weekend Hold Report
- Utilities
- Version: 1.0
- Activations: 10
Weekend Hold Report reads this account's own closed-trade history and counts how often positions were carried across a weekend - as a plain count, by symbol, and by how long those weekend-crossing positions were held. It does not predict, judge or advise, and it never looks at trade results; it only counts and times.
WHY THIS EXISTS
Carrying a position across the weekend is rarely a deliberate plan - it is something a trader notices only after the fact. The account's history tab lists trades one by one; it never flags which ones spanned a Saturday, how many symbols were involved, or how long those positions were actually open for. "17 weekend-crossing positions in the last year, 9 of them in XAUUSD" is a fact this account's own history already contains - it is just never counted.
SETUP
1. Drag the EA onto any chart. The symbol and timeframe do not matter - it reads the account's whole closed-trade history, not the chart it is running on.
2. A panel appears in the top-left corner and fills in from this account's own history.
3. It recalculates only when the number of closed deals changes, checked every 60 seconds. Nothing needs to be started or configured.
4. Nothing else is required. There are no numeric settings to tune.
INPUTS (four, in this order)
- InpShowPanel (true) - show or hide the panel.
- InpPanelCorner (top-left) - which of the four chart corners the panel sits in.
- InpPanelFontSize (9) - panel text size. Display only.
- InpColorText (white) - panel text colour.
There is no numeric threshold anywhere. The 365-day window, the definition of a weekend-crossing position, and the minimum sample size for a median are all fixed and cannot be changed.
WHAT COUNTS AS A WEEKEND-CROSSING POSITION
A closed position counts if the span from when it opened to when it closed includes a calendar Saturday, in server time. This is a fixed calendar-day rule, not the broker's actual market-closed hours - the exact close and reopen times are not something the terminal can read reliably, so the rule stays simple and the same for every account: if a Saturday falls anywhere between open and close, it counts once, regardless of how many Saturdays it spans.
WHAT THE PANEL SHOWS
The panel shows the total number of weekend-crossing closed positions in the last 365 days, next to what share that is of all closed positions in the same window. Below that, By symbol lists the weekend-crossing count for up to five symbols, by count, with anything beyond that folded into an Other symbols line. Median hold shows the median holding time of the weekend-crossing positions only - a separate number from the account's overall holding time - and shows a dash instead of a number when there are fewer than five weekend-crossing positions to measure. When there are no weekend-crossing positions in range, the panel says so in one line instead of leaving the section blank.
THE REPORT FILE
A CSV file is written to MQL5\Files\WeekendHoldReport\weekend_report.csv, broken down by month with columns: Month, Symbol, Count, MedianHoldSeconds. A blank Symbol marks the overall row for that month. It is rewritten in full each time, not appended, so it never contains duplicates. When there are no weekend-crossing positions at all, it still writes one row for the current month with a count of zero. Its full path is printed on the panel.
BEFORE YOU TEST IT
The Strategy Tester only has the closed-trade history from that one test run, so what you see there reflects the test period, not this account's real trading history. It is useful for confirming the EA runs without errors, not for reading its numbers as if they were real account data.
WHAT IT DOES NOT DO
It never places, closes or modifies a trade - it has no connection to the trade side of the terminal at all, and it does not close positions before the weekend either; it only counts what already happened. It does not use trade results anywhere - only when a position opened, when it closed, and its symbol. It does not include open positions - only fully closed ones count. It does not judge whether carrying a position over a weekend was a good or bad decision, and it does not suggest changing how you trade. It reads one account on one terminal, going back only as far as this account's own trade history reaches.
