Loading…

Minimum Activity Keeper

Some prop-firm evaluations and funded programmes require trading on a minimum number of calendar days, disqualifying an otherwise-passing account for going quiet - illness, travel, a strategy simply having no signal that day. Missing the requirement by inaction is an entirely avoidable failure mode, but manually remembering to place a token trade every qualifying day is easy to forget on the one day it matters. This EA checks, once per day at a configurable deadline, whether the account has already traded that calendar day - scanning both open positions and closed history, account-wide, not just its own orders, so it correctly recognises a day any other strategy already satisfied. If the day is still unsatisfied when the deadline arrives, it places exactly one trade: the broker's own minimum lot size, with a stop-loss and take-profit distance normalised to the symbol's digits and pushed out to at least the broker's stop/freeze level so the order cannot be rejected for sitting too close to price. It is disabled by default (InpEnableAutoTrade = false) and must be explicitly armed. This is deliberate: a tool that silently sends real orders the moment it is dragged onto a chart is the wrong default for anything that risks money. Notes and limitations "Minimum activity" rules vary by firm and are not standardised. This EA satisfies "at least one buy/sell order was opened on the account today" - it cannot know or enforce a firm's specific minimum lot size, minimum holding time, or per-day trade count beyond that. Confirm the exact rule text with your firm; using this against a rule it does not actually satisfy would leave the evaluation non-compliant despite the EA reporting success. The activity trade is a real market order at the broker's minimum lot size with a tight stop and target - risk is minimised, not eliminated. Spread and slippage cost real money on every trade it places, and the stop-loss can be hit like any other order. It only ever opens the one activity trade per unsatisfied day; it does not manage, trail, or otherwise interact with the trade after sending it, and does not close positions belonging to other strategies.

Expert advisor · MT5 · v1.0 · Free

About Minimum Activity Keeper

Minimum Activity Keeper is an expert advisor (trading robot) for MetaTrader 5. It increases the lot size after a losing trade (martingale). It has 10 settings, such as Enable auto trade, Trade symbol and Check hour. MQL source code included.

Files in the download: MinimumActivityKeeper.ex5, MinimumActivityKeeper.mq5, MinimumActivityKeeper.txt.

Trading robots can lose money. Check every setting and test on a demo account before using real funds.

Settings

SettingDefaultWhat it does
Enable auto tradefalseMaster switch - must be explicitly turned on, off by default
Trade symbolSymbol to trade for activity, "" = the attached chart's symbol
Check hour21Server-time hour to check/act if today is still unsatisfied, 0-23
Check minute0Server-time minute of the check, 0-59
Stop loss pips15.0Stop-loss distance, pips (auto-adjusted for 3/5-digit symbols)
Take profit pips5.0Take-profit distance, pips (auto-adjusted for 3/5-digit symbols)
Slippage points30Slippage tolerance for the entry order, points
Magic number24100241Magic number stamped on the activity order
Order commentMinimumActivityKeeperComment written on the orders
Poll seconds60How often to re-check whether today still needs action

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 → Experts.
  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 expert advisor from the Navigator onto a chart, check the settings, allow Algo/Auto Trading and press OK.
  6. Test it first on a demo account or in the Strategy Tester.

Download the PDF guide

Tags: Buy/Sell Arrows · Martingale · MT5 Expert Advisor · MQL5 Source Code

Expert advisors (EA) for MT4 & MT5 · PolyMaria