Minimum Trading Days Tracker
Counting any day with a closed order toward a minimum trading days requirement is the naive approach, and it is wrong for almost every funded programme. Nearly every rulebook only counts a day if at least one trade was held for a minimum duration - a single trade opened and closed within a second does not count, because it is not meant to be a loophole around the requirement. Some programmes add a minimum lot size on top of the duration rule. This tracker scans closed history, applies both filters - a configurable minimum hold duration and an optional minimum lot size - and only then marks a calendar day as qualifying. It reports the qualifying day count against the required number, how many more are needed, and whether today already has a qualifying trade on the books. The scan is bounded to a configurable lookback window in days rather than walking the account's entire history every time, which keeps it fast on an account that has been trading for a long time. Notes and limitations Read-only monitor - it never places or closes an order/position. It only sees this terminal's own account history, so results will differ across accounts or after history is cleared. Always check the exact duration and lot-size wording of your own programme's rule; some define a qualifying day differently (for example, by a minimum number of trades rather than a single held trade).
Expert advisor · MT4 · v1.0 · Free
About Minimum Trading Days Tracker
Minimum Trading Days Tracker is a script for MetaTrader 4. It has 6 settings, such as Required trading days, Min trade duration secs and Min lots for qualifying. MQL source code included.
Files in the download: MinimumTradingDaysTracker.ex4, MinimumTradingDaysTracker.mq4, MinimumTradingDaysTracker.txt.
Settings
| Setting | Default | What it does |
|---|---|---|
| Required trading days | 10 | Minimum qualifying trading days the programme requires |
| Min trade duration secs | 60 | A closed trade must be held at least this long to count toward its day |
| Min lots for qualifying | 0.0 | Minimum lots for a trade to count; 0 = no lot-size requirement |
| Lookback days | 90 | How many calendar days of history to scan, bounding the loop |
| Magic filter | -1 | Magic number filter (-1 = every magic number) |
| Current symbol only | false | Restrict counting to this chart's symbol |
How to install
- Download the ZIP from your PolyMaria library and unzip it.
- In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Scripts.
- Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
- Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
- Drag the script onto a chart to run it once.
Tags: MT4 Expert Advisor · MQL4 Source Code