Skip to content
Algo Market Labs

Configuration

Configuration

Reference for the inputs of NOVA, APEX, QUANTIS and VECTOR X1, APEX session times in server time, running several EAs on one account, and saving or loading presets with .set files.

8 min read

Editing inputs#

Inputs are set in the Inputs tab of the EA properties dialog. To reopen it on a running EA, press F7 on the chart, or right-click the chart and select Expert list > Properties.

Changing inputs re-initializes the EA. Open positions remain in place and continue to be managed through their magic number, stop-loss and take-profit, as long as InpMagic is not changed.

Input reference#

Each system has its own inputs, listed below with their default values. In the terminal's Inputs tab, MetaTrader shows each input's label (second column, in English) rather than its name, grouped under headings such as "=== Risk"; the name is what appears in .set files. All four systems also have the InpLicenseKey input: the license key from your order confirmation email, required; the EA does not trade without a valid key.

NOVA - Ethereum (ETHUSD), H4 chart, buy only. Same engine as QUANTIS, with its own validated settings.

InputLabel in MT5DefaultDescription
InpRiskPctRisk per trade (% of balance lost if the stop-loss is hit)2.0Risk per trade: percentage of the balance lost if the stop-loss is hit.
InpMaxDailyLossPctDaily loss limit (% of start-of-day equity), 0 = off5.0Daily loss limit, in % of the equity recorded at the start of the server day. 0 = off.
InpTFSignal timeframeH4Timeframe of the candles used for the signals, whatever the chart timeframe.
InpBreakoutBarsBreakout: close above the highest high of the last N bars50Buys when a candle closes above the highest high of the previous 50 candles.
InpTrendMaTrend filter: daily close above its SMA (0 = off)200Trend filter: buys only while the daily close is above its 200-day simple moving average. 0 = off.
InpAtrPeriodATR period (signal timeframe)14ATR period, on the InpTF candles.
InpSlAtrInitial stop-loss (x ATR)3.0Stop-loss 3 × ATR from the entry price.
InpTpAtrTake-profit (x ATR)20.0Take-profit 20 × ATR from the entry price.
InpTrailAtrTrailing stop below the highest high since entry (x ATR), 0 = off4.0Trailing stop 4 × ATR below the highest high since entry, adjusted at each new H4 candle; it only moves up. 0 = off.
InpExitOnTrendLossClose when the daily close falls below the trend SMAtrueCloses the position when the daily close falls below the 200-day average.
InpMaxSpreadPctSkip entries when the spread exceeds x % of the price0.15Entries are skipped while the spread exceeds 0.15% of the price; the entry is retried on the following ticks during the same H4 candle.
InpMagicMagic number26100304Identifies the EA's positions. Change it only to run a second NOVA on the same symbol and account.

APEX - Nasdaq 100 (NAS100), any chart timeframe (M5 recommended), intraday, buy only. APEX reads one-minute (M1) data internally, so the chart timeframe does not change its decisions.

InputLabel in MT5DefaultDescription
InpRiskProfileRisk profile: 1 = Standard, 2 = Dynamic (higher risk), 3 = Max (high risk), 0 = custom1Risk profile. 1 = Standard: 2% daily volatility target, maximum exposure 4 × equity, maximum loss of 2% of the balance at the stop-loss. 2 = Dynamic: 4%, 8 × and 4%, so twice the exposure and the risk, for 500 to 1,000 USD accounts. 3 = Max, high risk: 8%, 16 × and 8%, so four times the exposure and the risk of the Standard profile; simulated max drawdown of about 24% (see Risk management). 0 = custom: the next three inputs apply. Any other value prevents the EA from starting.
InpTargetVolPctCustom profile: target daily volatility of the position (% of equity)2.0Custom profile only (InpRiskProfile = 0), ignored otherwise. Target daily volatility of the position, in % of equity. Exposure = equity × min(InpMaxLeverage, InpTargetVolPct ÷ daily volatility of the last 14 sessions).
InpMaxLeverageCustom profile: max exposure (x equity)4.0Custom profile only (InpRiskProfile = 0), ignored otherwise. Maximum exposure, in multiples of equity.
InpMaxRiskPctCustom profile: max loss at the stop-loss (% of balance)2.0Custom profile only (InpRiskProfile = 0), ignored otherwise. Maximum loss if the stop-loss is hit, in % of the balance. Caps the lot.
InpMaxDailyLossPctDaily loss limit (% of start-of-day equity), 0 = off5.0Daily loss limit, in % of the equity recorded at the start of the server day. 0 = off.
InpOpenHourCash open hour (16:30 on most GMT+2/+3 servers = 9:30 New York)16Server hour of the US cash open (9:30 New York). See Sessions and server time below.
InpOpenMinuteCash open minute30Server minute of the US cash open.
InpSessionMinutesCash session length (minutes)390Length of the cash session in minutes (9:30-16:00 New York).
InpExitBeforeCloseClose everything x minutes before the cash close5Everything is closed 5 minutes before the cash close.
InpLookbackDaysDays used for the noise area and the volatility14Number of sessions used for the noise area and the daily volatility.
InpCheckMinutesDecision every x minutes30A decision every 30 minutes, the first one 30 minutes after the open.
InpBandMultNoise area width multiplier1.0Width multiplier of the noise area.
InpAllowShortAllow short positions (validated setting: off)falseShort positions. Validated setting: keep off (APEX is buy only).
InpTpPctTake-profit (% of the entry price)3.0Take-profit 3% above the entry price. The stop-loss is placed at the noise-area boundary or the session VWAP, whichever is tighter, then moved up at each decision point.
InpMaxSpreadPctSkip entries when the spread exceeds x % of the price0.03Entries are skipped while the spread exceeds 0.03% of the price; checked at each decision point.
InpMagicMagic number26100302Identifies the EA's positions. Change it only to run a second APEX on the same symbol and account.

QUANTIS - Bitcoin (BTCUSD), H4 chart, buy only.

InputLabel in MT5DefaultDescription
InpRiskPctRisk per trade (% of balance lost if the stop-loss is hit)2.0Risk per trade: percentage of the balance lost if the stop-loss is hit.
InpMaxDailyLossPctDaily loss limit (% of start-of-day equity), 0 = off5.0Daily loss limit, in % of the equity recorded at the start of the server day. 0 = off.
InpTFSignal timeframeH4Timeframe of the candles used for the signals, whatever the chart timeframe.
InpBreakoutBarsBreakout: close above the highest high of the last N bars20Buys when a candle closes above the highest high of the previous 20 candles.
InpTrendMaTrend filter: daily close above its SMA (0 = off)200Trend filter: buys only while the daily close is above its 200-day simple moving average. 0 = off.
InpAtrPeriodATR period (signal timeframe)14ATR period, on the InpTF candles.
InpSlAtrInitial stop-loss (x ATR)5.0Stop-loss 5 × ATR from the entry price.
InpTpAtrTake-profit (x ATR)16.0Take-profit 16 × ATR from the entry price.
InpTrailAtrTrailing stop below the highest high since entry (x ATR), 0 = off3.0Trailing stop 3 × ATR below the highest high since entry, adjusted at each new H4 candle; it only moves up. 0 = off.
InpExitOnTrendLossClose when the daily close falls below the trend SMAtrueCloses the position when the daily close falls below the 200-day average.
InpMaxSpreadPctSkip entries when the spread exceeds x % of the price0.15Entries are skipped while the spread exceeds 0.15% of the price; the entry is retried on the following ticks during the same H4 candle.
InpMagicMagic number26100301Identifies the EA's positions. Change it only to run a second QUANTIS on the same symbol and account.

VECTOR X1 - gold (XAUUSD), H4 chart, buy only.

InputLabel in MT5DefaultDescription
InpAggressivenessAggressiveness 1-5 (risk per trade 1 / 2 / 3 / 4 / 5 %)3Aggressiveness level 1 to 5: risk per trade of 1, 2, 3, 4 or 5% of the balance. Any other value prevents the EA from starting.
InpMaxDailyLossPctDaily loss limit (% of start-of-day equity), 0 = off8.0Daily loss limit, in % of the equity recorded at the start of the server day. 0 = off.
InpTFSignal timeframeH4Timeframe of the candles used for the signals, whatever the chart timeframe.
InpBreakoutBarsBreakout: close above the highest high of the last N bars80Buys when a candle closes above the highest high of the previous 80 candles.
InpTrendMaTrend filter: daily close above its SMA (0 = off)200Trend filter: buys only while the daily close is above its 200-day simple moving average. 0 = off.
InpAtrPeriodATR period (signal timeframe)14ATR period, on the InpTF candles.
InpSlAtrInitial stop-loss (x ATR)5.0Stop-loss 5 × ATR from the entry price.
InpTpAtrTake-profit (x ATR)20.0Take-profit 20 × ATR from the entry price.
InpTrailAtrTrailing stop below the highest high since entry (x ATR), 0 = off3.0Trailing stop 3 × ATR below the highest high since entry, adjusted at each new H4 candle; it only moves up. 0 = off.
InpExitOnTrendLossClose when the daily close falls below the trend SMAtrueCloses the position when the daily close falls below the 200-day average.
InpMaxSpreadPctSkip entries when the spread exceeds x % of the price0.05Entries are skipped while the spread exceeds 0.05% of the price; the entry is retried on the following ticks during the same H4 candle.
InpMagicMagic number26100303Identifies the EA's positions. Change it only to run a second VECTOR X1 on the same symbol and account.

Sessions and server time#

Only APEX uses session times. NOVA, QUANTIS and VECTOR X1 have no session input: they work on H4 candles at any hour the market is open, and only their daily loss limit follows the server day.

APEX trades the US cash session of the Nasdaq 100, 9:30 to 16:00 New York time. Its session inputs are in broker server time, not in your local time. The defaults InpOpenHour = 16 and InpOpenMinute = 30 place the open at 16:30 server time, which is 9:30 New York on most GMT+2 / GMT+3 servers: those that run on GMT+2 in winter and GMT+3 in summer and change hour on the US dates. With InpSessionMinutes = 390 and InpExitBeforeClose = 5, APEX makes its first decision at 17:00 server time and closes everything at 22:55.

  1. 1

    Read the server time

    The server time is shown at the top of the Market Watch window (Ctrl+M).

  2. 2

    Compare it with New York

    Compare it with the current time in New York. If the server is 7 hours ahead of New York, keep 16:30.

  3. 3

    Otherwise, adjust

    Set InpOpenHour and InpOpenMinute to the server time of 9:30 New York. Example: on a server on UTC without daylight saving, that is 13:30 while the US is on summer time and 14:30 while it is on winter time, so the inputs must be changed at each US clock change.

Running multiple instances#

  • Each EA only manages positions that carry its own magic number on the symbol of its chart. It never modifies or closes manual trades or positions of other EAs.
  • Each EA holds at most one position at a time on its symbol.
  • The four systems can run on the same account: their default magic numbers are different (NOVA 26100304, APEX 26100302, QUANTIS 26100301, VECTOR X1 26100303).
  • To run the same EA twice on one account, for example on two charts of the same symbol, give each instance a different InpMagic. Two instances with the same magic number on the same symbol share a single position and interfere with each other's management of it.
  • Changing InpMagic while a position is open detaches that position from the EA: it keeps its stop-loss and take-profit on the broker's server, but the EA no longer trails or closes it.
  • Risk inputs apply per instance. When several instances or systems run on one account, the combined risk is the sum of their individual exposures, and the daily loss limit of each EA is measured on the equity of the whole account.

Presets (.set files)#

A preset is a .set file containing a complete set of input values. Presets make configurations reproducible across terminals and accounts.

  1. 1

    Save

    In the Inputs tab, click Save and choose a descriptive file name, for example VECTOR_X1_level3.set.

  2. 2

    Load

    In the Inputs tab, click Load and select the .set file. Review every value before clicking OK.

  3. 3

    Install supplied presets

    If presets are supplied with your system, copy them into the MQL5\Presets folder of the data folder so that they appear directly in the Load dialog.