Staggered Basket Entry Sequencer
Opening a five-symbol basket in one go means every leg's entry is anchored to the same few seconds of market conditions - a spike, a news release or a thin-liquidity moment affects all of them identically. This EA takes a basket definition (a comma-separated symbol list with a matching direction list) and drips it into the market instead, sending one queued leg every InpSlotMinutes rather than all of them together. Each leg is sized independently at send time from a percentage of current account equity, the symbol's own live MODE_TICKVALUE/MODE_TICKSIZE and a pip-based stop distance - never a fixed lot size copied across instruments with very different tick values. A leg that fails to send (no margin, market closed, rejected) is logged and the queue still advances to the next scheduled slot rather than retrying the same leg indefinitely and stalling the rest of the basket. The queue is built once at OnInit from the two input lists and is not editable while running - restart the EA with new inputs to sequence a different basket. Notes and limitations The queue is fixed at OnInit - adding or removing symbols mid-sequence requires restarting the EA, which starts a fresh sequence from the first slot. A leg that fails once is not retried; it is marked skipped and the queue moves on. Check the CSV log for any skipped leg that needs to be entered manually. This EA opens positions only - it does not manage them afterward (no trailing, no basket-level exit). Pair it with separate management tooling if the basket needs coordinated exits.
Expert advisor · MT4 · v1.0 · Free
About Staggered Basket Entry Sequencer
Staggered Basket Entry Sequencer is an expert advisor (trading robot) for MetaTrader 4. It increases the lot size after a losing trade (martingale) and can size trades from your balance and risk percent. It has 8 settings, such as Symbol list, Direction list and Risk percent per leg. MQL source code included.
Files in the download: StaggeredBasketSequencer.ex4, StaggeredBasketSequencer.mq4, StaggeredBasketSequencer.txt.
Trading robots can lose money. Check every setting and test on a demo account before using real funds.
Settings
| Setting | Default | What it does |
|---|---|---|
| Symbol list | EURUSD,GBPUSD,USDJPY | Comma-separated basket symbols |
| Direction list | BUY,BUY,SELL | Comma-separated BUY/SELL, one per symbol |
| Risk percent per leg | 0.5 | %% of equity risked per leg |
| Stop loss pips | 30.0 | Stop distance per leg, in pips |
| Slot minutes | 15 | Minutes between each queued leg's entry |
| Magic number | 26075 | Magic number stamped on every leg this EA opens |
| Max slippage points | 20 | Slippage tolerance passed to OrderSend |
| Log file name | StaggeredBasketSequencer.csv | File written under MQL4\Files\ |
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 → Experts.
- 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 expert advisor from the Navigator onto a chart, check the settings, allow Algo/Auto Trading and press OK.
- Test it first on a demo account or in the Strategy Tester.
Tags: News Trading · Multi-Currency · Martingale · Risk & Lot Size · MT4 Expert Advisor · MQL4 Source Code