Entry Amount

The Entry Amount feature defines the amount used to open a new position. It is a mandatory feature and is always enabled in every strategy.

This feature controls the base trade size for each new entry. Other features such as Add on Same Signal, Reduce on Opposite Signal, Grid averaging down, and Position limits reference the entry unit when they add or scale positions.

What the feature is for

Use this feature when you want to set the starting trade size for the strategy. The value can be expressed in six different units, and the same unit is reused by features that add to or reduce positions later.

Entry unit

The unit determines how the entry amount is interpreted:

  • Fixed lots: trade volume in standard lots.
  • Progressive lots: a lot size per account step, recalculated from the current equity for each entry. The step itself is a setting (the Account step dropdown, 100 to 10,000, default 100).
  • Amount: a fixed amount in the symbol base currency.
  • Value (account ccy): a fixed value in the account currency.
  • Margin (account ccy): a fixed required margin amount in the account currency.
  • Equity percent: the required margin expressed as a percentage of the current equity, recalculated for each entry.

Changing the unit re-labels the amount field, resets the entry amount to the new unit's minimum, and changes the allowed range and step. Equity percent accepts 0.1 to 100 in steps of 0.01, independently of the symbol's lot step. Values such as 1, 2, or 5 are kept as entered in the form and strategy panel.

For the other units, when a trade context is loaded, the field follows the data set:

  • The minimum and maximum equal the symbol's minimum and maximum lot converted to the selected unit (using the lot size, the last close price, the conversion rate to the account currency, and the leverage). Amount, Value, and Margin round them inward to whole numbers.
  • Fixed lots keep the volume the engines trade: the form value is snapped to the same lot grid the backtester and the MQL5 expert use (the minimum lot plus whole lot steps) and clamped to the minimum and maximum.
  • Amount, Value, and Margin keep the entered whole number (for example 10,000 USD or 20 USD of margin) and step by 1. The trade table, the backtest, and the MQL5 expert round only the lots that number sizes to the nearest symbol lot step, so the table's Amount (lots), Position value, and Required margin rows show the actual traded size.
  • Progressive lots keep the entered number on the lot grid, because the number is itself a lot size. A unit change resets it to the minimum lot, so switching to Progressive lots always starts at 0.01 lot per step.
  • The displayed precision is fixed per unit: Fixed lots and Progressive lots show 2 digits, Amount, Value, and Margin show whole numbers, and Equity percent shows 2 digits. The trade preview table shows every value with 2 digits.

Without a loaded data set the generic limits apply: Fixed lots 0.01 to 1,000 (2 digits); Progressive lots 0.01 to 1,000 (2 digits); Amount, Value, Margin 1 to 100,000,000 (no decimals); Equity percent 0.1 to 100 (2 digits).

Equity percent scales with the leverage: with a 0.01 lot step on EURUSD (close 1.08500, initial account 10,000 USD, leverage 1:100), a 5% entry is stored as 5% and sizes 0.46 lots. The table shows the actual required margin of 499.10 USD (4.99%), which can differ from the requested percentage because of lot rounding.

Progressive lots

The Progressive lots unit configures a lot size per account step. The step is a strategy setting — the Account step dropdown right below the amount — so the same strategy trades the same ladder on any account. The engines credit one step for every complete account step of the current equity, count at least one step, and multiply:

account step = the selected value: 100, 200, 300, 500, 700, 1,000, 2,000, 3,000, 5,000, 7,000, or 10,000 (default 100), in the account currency
steps = the whole number of account steps in the current equity, minimum 1
volume = lot per step × steps

An equity of 9,950 USD with the 100 step credits 99 steps, 10,000 USD credits 100, and 10,050 USD still credits 100. An equity below one step credits one step, so a small or freshly funded account trades the configured per-step size instead of nothing.

At 10,000 USD of equity with 0.02 lot per step, the values size:

Account stepStepsAmount (lots)
1001002.00
200501.00
300330.66
500200.40
700140.28
1,000100.20
2,00050.10
3,00030.06
5,00020.04
7,00010.02
10,00010.02

The last two rows show the minimum of one step: a step larger than the equity still credits that single step, so the volume stops shrinking and stays the lot per step. A wide step therefore suits a large account — 10,000 USD of equity is one step at the 10,000 setting but ten steps at 1,000.

The step is a number of account-currency units, whatever the currency. A yen account holds about 100 times more currency units for the same real size, so 100 JPY is roughly one US dollar of equity: a strategy on a JPY account keeps the step it was composed with, and a JPY user who wants the 100 USD aggressiveness picks a larger value (1,000 JPY is about 6.7 USD). The same strategy on a USD account trades the same step in dollars — that is the point of storing it. Earlier versions switched to a 1,000 step automatically on a JPY account; that rule is gone, because a stored setting cannot depend on the live account.

The step is shared by every feature that reuses the Entry unit, so Add on Same Signal, Reduce on Opposite Signal, and Max Open Volume cannot drift from it.

The volume is capped at the symbol's maximum lot: when the ladder would exceed it, the engines trade the largest volume on the symbol's lot step at or below the maximum instead of refusing the entry. The trade table's Amount (lots) row shows that clamped volume for the initial account.

The default, 0.01 lot per step, is an aggressive sizing: on EURUSD at 1:100 it uses about 1,085 USD of margin per 10,000 USD of equity (10.85%), so a 10,000 USD account trades 1.00 lot. At 1:10 leverage the same ladder needs more than the whole equity, every entry is skipped by the margin check, and the feature list marks the entry amount with "(Too large Margin)".

Backtest behaviour

For fixed units, the backtester sizes the entry at compile time from the last bar's close price and the account conversion rates. Margin is converted to the account currency: lots × contract size × price × quote-to-account rate ÷ leverage.

For Equity percent and Progressive lots, each entry is recalculated from the current equity and its fill price, including entries after profits or losses and the opening leg of a reversal. Grid entries also recalculate the base volume from current equity, including floating profit or loss, before applying grid scaling. The MQL5 expert likewise reads the live account equity on each entry. The form and trade preview continue to use the initial account and last close as an illustrative starting size.

Add on Same Signal, Reduce on Opposite Signal, and Max Open Volume reuse this unit, so their equity-percent and progressive amounts also follow current equity at their own fill or check. Stop Loss, Take Profit, and Break-even money and equity-percent distances convert with the same base volume, so a progressive entry also moves those levels with the account.

The computed lots of every unit are snapped to the symbol lot step and clamped into the symbol's volume range: a calculated size below the minimum lot trades the minimum lot, and one above the maximum trades the largest volume on the lot step at or below the maximum. This clamp applies before Martingale or grid scaling and is the same rule in the preview, the backtester, and the MQL5 expert (clampLots / ClampEntryLots), so the volume the preview shows is the volume that trades. Martingale and Max Open Volume then multiply that base size, and the result is validated: a scaled volume outside the symbol's range is still rejected, in both engines, so a multiplier ladder that outgrows the maximum stops instead of trading something else.

Before each entry the engine checks the account margin: when the current equity is not above the required margin of the next (Martingale-aware) entry size, the entry is skipped — the same "Not enough money" behaviour as a live account.

Trade environment preview

The feature shows a preview table in the form. All entry units draw the same unified table: the first row echoes the entry amount in the selected unit, followed by the computed volume, amount, position value, and required margin in the active account environment.

  • Money values show two decimal digits and thousands separators (for example 1,085.00 USD); the percentage and Amount (lots) rows also show two decimals.
  • The required margin row shows the margin percent of the initial account in parentheses.
  • Progressive lots echo the two halves of its rule — Lots per step and Account step — and then show the same entry values every other unit shows, sized at the initial account: the Amount (lots) row, amount, position value, and required margin. The table never lists other account sizes; the Amount (lots) row is the entry the configured rule produces for the account you set in the settings, and it already carries the symbol's maximum-volume clamp when the ladder would exceed it.
  • The trade table's Amount (lots) row, the feature list sentence, and the exported expert's input comment all name the ladder's amount as a lot size per step, never as a volume. The list sentence states only the rule — 0.01 lots per 500.00 USD step — while the volume it sizes at the initial account is the trade table's row.

The preview only appears when a valid trade context (symbol, period, and account) is loaded. If no context is available, the table shows a no-data placeholder.

Example

EURUSD with a USD account, close price 1.08500, initial account 10,000 USD, leverage 1:100, current spread 1 pip:

Entry unitEntry amountAmount (lots)Amount (EUR)Position value (USD)Required margin
Fixed lots0.010.011,000.00 EUR1,085.00 USD10.85 USD (0.11%)
Progressive lots0.01 per step1.00100,000.00 EUR108,500.00 USD1,085.00 USD (10.85%)
Equity percent10.85%1.00100,000.00 EUR108,500.00 USD1,085.00 USD (10.85%)

A 5% entry stays at 5% and sizes 0.46 lots after rounding; the 10.85% example sizes exactly one lot. The Amount (lots) row shows the rounded starting volume, while Required margin shows its actual cost.

The progressive row is the entry for the initial account with the default 100 step: 0.01 lot per 100 USD credits 100 steps at 10,000 USD, so the entry is 1.00 lot (margin 1,085.00 USD, 10.85%). Selecting the 500 step instead credits 20 steps and sizes 0.20 lots. The step is the strategy's number, so a JPY account with 1,000,000 JPY and the 1,000 step trades 10.00 lots only because the strategy says 1,000 — not because the account is in yen.

Form fields

  • New entry: section header for the entry settings.
  • Entry unit: the unit of the entry amount. Changing it resets the entry amount to the new unit's minimum.
  • Entry amount: the numeric value, with label, range, step, and precision adjusted by the selected unit and the loaded data set. With Fixed lots the label is Amount (lots); with Progressive lots it is Lot per step.
  • Account step: with Progressive lots a select follows the amount with eleven values (100, 200, 300, 500, 700, 1,000, 2,000, 3,000, 5,000, 7,000, 10,000) labelled in the account currency — for example "500 USD" — or plainly ("500") while no account is loaded. The default is 100. The select is hidden for every other unit.
  • One step: with Progressive lots an info line repeats the selected step, for example "One step = 500.00 USD of equity".
  • Trade environment preview: read-only table with calculated values.

Feature errors

The feature list shows an error when the entry amount configuration conflicts with other features:

  • Entry amount above the volume limit: when the Max Open Volume feature is enabled, the Max open volume must be at least as high as the Entry amount. If the entry amount is higher than the maximum, an error is shown in the feature list, because a single entry would already exceed the volume limit.
  • Required margin above the initial account: when a trade context is loaded, the required margin for the entry amount is compared with the initial account. If the calculated required margin is greater than the initial account, the entry amount text is marked with "(Too large Margin)". With Progressive lots the comparison uses the volume the ladder sizes at the initial account, which is what makes a leverage that is too low for the configured ladder visible before a backtest.