Loading…

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 · MT5 · v1.0 · Free

About Minimum Trading Days Tracker

Minimum Trading Days Tracker is a script for MetaTrader 5. 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.ex5, MinimumTradingDaysTracker.mq5, MinimumTradingDaysTracker.txt.

Settings

SettingDefaultWhat it does
Required trading days10Minimum qualifying trading days the programme requires
Min trade duration secs60A closed trade must be held at least this long to count toward its day
Min lots for qualifying0.0Minimum lots for a trade to count; 0 = no lot-size requirement
Lookback days90How many calendar days of history to scan, bounding the loop
Magic filter-1Magic number filter (-1 = every magic number)
Current symbol onlyfalseRestrict counting to this chart's symbol

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 5 open File → Open Data Folder, then go to MQL5 → Scripts.
  3. Copy the .mq5 file(s) there. Put any .mqh files in MQL5 → Include.
  4. Open the .mq5 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
  5. Drag the script onto a chart to run it once.

Download the PDF guide

Tags: MT5 Expert Advisor · MQL5 Source Code

Expert advisors (EA) for MT4 & MT5 · PolyMaria