Skip to content
AlgoVerdict
Menu

Setup guide · our own product · As of 22 Nov 2026

Setting up LongRunner: set files, server time and position size

Set up LongRunner: copy the set files to Presets, attach it to an index chart, align buy and sell times with your server clock and size the position.

AlgoVerdict editorial team, responsible: Pitt PetruschkeUpdated

On this page

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.

Timeline over three trading days: LongRunner buys the index at 01:05 server time and sells at 23:50, before the daily rollover at midnight. No position overnight, so no swap. Below, the trend filter: trade only when the last daily close is above the 200-day average.LongRunner: one long a day, flat at the rolloverDay 1longDay 2longDay 3long01:0523:50Rollover 00:00: no position, no swapTrend filter (all sets: SMA 200, D1)Daily close above the averagethe trade is takenDaily close below the averagepause, no buySchematic · no price data
LongRunner with the times of the US sets (server time UTC+2/+3): one long a day, flat at the rollover. Schematic, no results.

The set files and the logic behind them

SetIndexBuySellPosition valueFilter
NAS100Nasdaq-10001:0523:500.5 × balanceSMA 200, D1
US30Dow Jones01:0523:500.7 × balanceSMA 200, D1
DE40DAX09:0522:550.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

  1. Copy the set files: in MetaTrader 5, File → Open Data Folder, then into MQL5/Presets/.
  2. Refresh the Navigator: right-click Expert Advisors → Refresh. A Market purchase sits under Expert Advisors → Market.
  3. Open an index chart: any timeframe; M15 or H1 is easy to read.
  4. Attach the EA: Common tab, "Allow Algo Trading"; Inputs tab, load the set, then OK and switch on Algo Trading in the toolbar.
  5. 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.

LongRunner on MQL5 (our own product, not a partner link)

Frequently asked questions

Which set file goes with which symbol?

A set file belongs to the market, not to the broker's symbol name. Use the NAS100 set on NAS100, USTEC or US100, the US30 set on US30, DJ30 or WS30, and the DE40 set on DE40, GER40 or DAX40.

Why do the LongRunner sets have no stop-loss?

The sets control risk through the position value instead of a stop. Without a stop-loss, 50 in "% of balance" mode means a position worth half the balance. A 10 % index drop in one day then costs 10 % of that value. Stop-loss, take profit, break-even and trailing are available as options.

Can I run several indices on one account?

Technically yes, each set has its own magic number. The US indices move almost in step, though, so their risk adds up nearly one to one. The set sizes are meant for one index per account; lower them if you run more.