I built Recurring Buy DCA because buying the same thing every Monday shouldn’t require me to remember it’s fucking Monday. It’s a free MetaTrader expert advisor for dollar-cost averaging. Give it a chart, a buy size and a daily, weekly or monthly schedule. It places the orders, shows what’s open and tells you when the next buy is due. Set a lot cap so it knows when to stop piling on.
Five buys, no sixth
Install it from the MQL5 Market, then drag it from Navigator > Expert Advisors > Market onto a demo chart. Use the broker’s exact symbol name. In the expert’s Common tab, allow trading, then turn on Algo Trading on MT5 or AutoTrading on MT4. One copy runs one plan on the chart’s symbol. The chart timeframe does not set the buy clock.
On a demo symbol that allows 0.01 lots, pick Same lots each buy, set Lots per buy to 0.01, and pick Weekly on Monday. Choose a time the broker is open, leave First buy after attaching at At the next buy time, and set Maximum total lots to 0.05. Check the next buy line. If nothing closes, five fills hit the cap and the EA refuses the sixth order outright. The whole point of this demo is to check that the damn thing stops.

With Same money each buy, you set the value of the position in your account currency. The margin is the collateral the broker sets aside to let you open it. Those are two different damn numbers, and the panel shows both. When the price falls, the same target value can buy more lots. The EA rounds down to a size the broker accepts and buys nothing if the amount can’t cover the smallest lot.
A due buy can wait
Monday means Monday on the broker’s clock. With Skip the missed buy, the order gets its scheduled minute. Miss that minute and that’s it. Next market open can still place one missed buy before its window expires. It won’t unload a week’s worth of orders on the broker because you left the terminal off. Set the hour to -1 if you want the first eligible chance in the period instead of a fixed time.
Say I want the Monday buy to wait for RSI 14 under 30 on H4. The EA reads the last closed four-hour candle. If RSI dips below 30 halfway through a candle and comes back up before the close, that dip doesn’t count for shit. The condition only lets a buy through while the schedule still allows it. You can use price against an SMA or VWAP, a move across several candles, or a condition on another broker symbol instead.
The Buy now button is a separate manual order. It skips the schedule and the condition, but it still checks the market, spread, margin and plan limits. It doesn’t use up the scheduled buy, and it works while scheduled buys are paused. Reattach with the same account, symbol and magic number and the EA remembers the plan instead of buying the same period again. Give another copy on the same symbol its own magic number.

Margin is not a stop loss
The lot and position caps are unlimited by default. Set a lot cap before you run a plan. On an MT5 netting account, several buys can add to a single position, so counting positions is not a substitute. A margin or equity floor can block new buys, but it does not shrink what’s already open. There is no grid, martingale, take profit or stop loss in this EA.
Here’s the bit I wouldn’t leave for the live account to teach me. Margin close is on by default and watches the whole account’s margin level. A trade this EA never touched can drag the level down. If that trips the threshold, the EA closes its own least profitable buys first until the level recovers, pauses buying and alerts. It still watches margin when you hit Pause. Shut down the terminal or take the EA off the chart and it can’t close a damn thing. A gap or a shut market can leave the broker closing first.
If you’re replaying the Monday plan in Strategy Tester, turn off Buy once at the start of a test or it’ll try to buy on the first tick. MT4’s tester also can’t evaluate a condition on a second symbol. And if you’re buying a CFD, you don’t own the underlying asset. Check the broker’s swap and contract size. A small margin number doesn’t make holding the damn thing cheap.
The user guide walks through the panel, sizing and tester. The input and troubleshooting reference tells you what the red line actually means when an order doesn’t go through.
Get Recurring Buy DCA free on the MQL5 Market for MetaTrader 5 or MetaTrader 4.