In short
LongRunner buys a stock index once a day at a fixed time and sells it again before the broker's daily rollover. It holds nothing through the rollover, so no swap is charged. Three things matter for the setup: the right set file, times that fit your server clock and a position size you understand. The detailed explanation with every input is in the LongRunner guide; this page is the path to the first trade.
The set files and the logic behind them
| Set | Index | Buy | Sell | Position value | Filter |
|---|---|---|---|---|---|
| NAS100 | Nasdaq-100 | 01:05 | 23:50 | 0.5 × balance | SMA 200, D1 |
| US30 | Dow Jones | 01:05 | 23:50 | 0.7 × balance | SMA 200, D1 |
| DE40 | DAX | 09:05 | 22:55 | 0.1 × balance (test size) | SMA 200, D1 |
Times are server time (UTC+2 in winter, UTC+3 in summer). The US sets buy just after the server's day opens and sell shortly before midnight; the DAX set buys just after 8:00 and sells just before 22:00 German time. In the weeks between the US and EU clock changes, the DAX times are shifted by one hour against German time. No set uses a stop-loss, take profit, break-even or trailing stop. The DAX set is deliberately small until you have checked it on your broker's data. There is no S&P 500 set.
Setup
- Copy the set files: in MetaTrader 5, File → Open Data Folder, then into
MQL5/Presets/. - Refresh the Navigator: right-click Expert Advisors → Refresh. A Market purchase sits under Expert Advisors → Market.
- Open an index chart: any timeframe; M15 or H1 is easy to read.
- Attach the EA: Common tab, "Allow Algo Trading"; Inputs tab, load the set, then OK and switch on Algo Trading in the toolbar.
- Read the start log: LongRunner prints the settings, the lot of the next entry, the position value as a multiple of the balance and what a 10 % index drop would cost. It warns if the start or close time is outside the symbol's session.
Shifting the times to your server
If your broker does not run on UTC+2/UTC+3, move the buy and close time by the difference. One hour behind means buy at 00:05 and sell at 22:50. One rule decides everything: the sell has to happen before the broker's rollover, otherwise you pay the swap the EA is designed to avoid. Restart the EA after the change and read the log.
Position size without a stop-loss
Without a stop, "Risk % of balance" is the value of the position. 50 means a position worth half the account. The lot follows from the value of one lot at your broker, so the contract size of your symbol changes the number of lots, not the position value. LongRunner respects the minimum and maximum lot, the volume limit and free margin, and shrinks an order rather than have it rejected. If the size falls below the minimum lot, the percentage and money modes skip the day.
Watch out: percentage mode uses the balance of the whole account. If other EAs run alongside, LongRunner's lot grows with their profits.
The trend filter
With the filter on, LongRunner only buys while the last daily close is above the 200-day average. The filter aims to sit out long bear markets; it insures nothing and is not a return booster: through extended downtrends the EA stays out, and after a fast V-shaped crash it buys back late. Every set has it switched on.
Broker and account
- Spread at a fixed minute: buy and sell happen at the same time every day, so the spread in that minute is the main cost. Set "Max spread at entry" to suit your broker; LongRunner then waits until the latest entry time.
- Hedging recommended: on netting LongRunner shares one position per symbol with other EAs and skips the day rather than buy into someone else's position.
Risks
LongRunner is neither a grid nor a martingale, but the sets have no stop-loss: a crash day hits the full position, and future crashes can be deeper than anything the sets were sized on. Several indices on one account multiply that. Test on demo and in the Strategy Tester with real ticks on your broker's data before real money runs.
Past results are no guarantee of future ones, and trading leveraged products can lead to the loss of the capital invested.