Position size: translating a Forex move into monetary sensitivity
Check units, currencies, costs and rounding to understand how position size turns Forex price movements into money.

You open two reports with the same entries and exits. The prices match, but one trade loses thirty dollars in one report and a hundred and twenty in the other. Before looking for differences in the indicator, it helps to examine a less striking column: quantity. A rule can generate the same signal while representing different monetary commitments.
Position size connects a decision with the money that changes when the price moves. Understanding that connection requires more than recognising the word “lot”. You need to identify units, direction, quote currency, account currency and the conditions that make the calculation stop being proportional.
This article develops an original teaching investigation of a single position. Prices, quantities, commissions, budgets and restrictions are hypothetical. They describe neither Atlas results nor available fees or recommended sizes. The aim is to review rules and code with a specific question: what monetary change should this movement produce under these assumptions?
We will work mainly with EUR/USD. When using demo materials, its CSV can help reconstruct an available example; that reference to data applies only to the demo. You can also begin with a few invented quotes and a calculator, without placing any order.
A quantity without a unit does not yet describe an exposure. Resolving that first ambiguity prevents all subsequent calculations from being precise about the wrong interpretation.
Reconstruct the unit used by the code
In EUR/USD, a price of 1.0800 expresses dollars per euro. If the quantity field contains 25,000 units of the base currency, it represents 25,000 euros. Multiplying that quantity by the price gives a notional value of 27,000 dollars. Units help check the operation: euros multiplied by dollars per euro leave dollars.
However, a column named “volume” may represent units, lots or contracts. Its name does not determine its meaning. Before using it, locate the instrument specification and the conversion applied by the program. If an interface expresses lots while the engine uses units, you need to know the multiplier connecting them.
As an invented example, suppose a contract defines one lot as 100,000 base units. Then 0.25 lots would be 25,000 units. That equality depends on the adopted definition; it does not authorise copying the same multiplier to every instrument, provider or contract type.
OANDA’s instrument documentation distinguishes the pip’s decimal location, display precision, unit precision and minimum size. It provides a public example of these fields serving different purposes; it is not a universal specification. API instrument definitions.
To review a robot, prepare a small dictionary with the original field, its unit, the transformation and the final unit. Include an example you can follow manually. If you enter 0.25 and the record returns 25,000, an explicit transformation should explain that relationship.
Also check the meaning of the sign. Some programs use positive quantities for purchases and negative quantities for sales; others retain a positive quantity and a separate direction field. Both representations can be consistent. The error appears when one function interprets direction one way and another applies it again.
The unit dictionary is part of the calculation. It is not secondary documentation you can write after observing the curve. If a field’s definition is missing, preserve the question and avoid inferring it solely because the result “looks reasonable”.
A useful first test is to take a small quantity, double it and check which fields change. You are not yet evaluating a strategy: you are checking that the program represents the size you believe you specified.
Separate direction and movement
Suppose a hypothetical purchase of 25,000 EUR opens at 1.0800 and closes at 1.0812. The difference is 0.0012 USD per EUR. Multiplied by 25,000 EUR, it produces 30 USD before costs. If the closing price were 1.0788, the movement would be minus 0.0012 and the result would be minus 30 USD.
For an initial sale with the same absolute quantity, the sign reverses. A fall from 1.0800 to 1.0788 would produce 30 USD gross in this model. An increase of the same magnitude would produce minus 30. There is no need to memorise four formulas if you preserve a signed-quantity convention and apply it only once.
OANDA’s statement explanation expresses a purchase result as the difference between exit and entry multiplied by units, and reverses the difference for a sale. That reference documents its calculation convention; the numbers here are our own. Result calculation in the statement.
Write the four cases in a checking table: purchase with a rise, purchase with a fall, sale with a rise and sale with a fall. Calculate the expected answer first; then consult the program. If you generate the expected answer with the function you are trying to check, you may preserve the same error on both sides.
Direction changes the sign, not the monetary unit. A EUR/USD trade result calculated this way remains expressed in dollars even when the direction is short. Conversion into euros, where relevant, is another step and deserves its own record.
Define what the entry and exit prices represent. In this first exercise, they are hypothetical executed prices that have already been specified. We are not adding a separate spread or assuming that a candle’s closing price is always executable. If other prices are used, the interpretation of the calculation must change.
The zero-movement test is informative too. Without costs and with the same entry and exit price, this model’s result is zero for any quantity. If losses appear, check whether the program has incorporated commissions, price differences or financing. It may be working correctly with a different scope.
These simple checks establish a basis for discussing sensitivity. Before calculating how much a loss increases when size doubles, you need to have checked what your function treats as a loss and which currency it returns.
Measure the value of one pip
For this exercise, we adopt an EUR/USD pip equivalent to 0.0001 USD per EUR. With 25,000 EUR, that change represents 2.50 USD. Five pips represent 12.50 USD and twelve pips represent 30 USD, provided quantity and the model’s other conditions remain unchanged.
Sensitivity is the relationship between the change in result and the change in price. In this linear case, 25,000 base units multiply each price increment. Expressing it as dollars per pip makes that relationship more readable, but adds no prediction about how many pips the market will move.
| Quantity in the example | Value of one pip | Twelve-pip movement |
|---|---|---|
| 10,000 EUR | 1.00 USD | 12.00 USD |
| 25,000 EUR | 2.50 USD | 30.00 USD |
| 40,000 EUR | 4.00 USD | 48.00 USD |
The table does not compare three strategies. It holds movement fixed and changes only quantity. Nor does it describe three universal safety levels. A small sensitivity can accumulate over a large movement; a larger sensitivity may last briefly. The table answers a local, deliberately limited question.
Pip value measures sensitivity; it does not measure the probability of losing. Estimating a distribution of results would also require a model of movements, duration, exits and execution. A monetary amount per pip does not contain that information.
Visible precision can be confusing. A quote with five decimal places may display increments smaller than the adopted pip. If the program multiplies the last decimal increment by a value calculated for a full pip, it introduces a scaling difference. The pip’s decimal location and screen precision therefore need separate checks.
A sensitivity test can use a positive and a negative one-pip perturbation around the same price. The result difference should be symmetrical in this gross model. If it is not, investigate conversions, rounding, costs or restrictions before concluding that the formula is wrong.
The monetary amount per pip also needs a time or context. If you later convert the result into another currency at a variable rate, sensitivity expressed in that currency can change even when base units remain equal. The next step makes that dependency visible.
Convert into the account currency
The 30 USD in the first example is not automatically 30 EUR. Suppose the account is expressed in euros and we use an illustrative conversion rate of 1.0812 USD per EUR. Dividing 30 USD by that rate gives approximately 27.7469 EUR. Rounded for presentation, the amount would be 27.75 EUR.
If we instead used the entry rate of 1.0800, we would obtain approximately 27.7778 EUR. The difference is small in this example, but demonstrates that “convert into euros” is not fully specified until the rate and the time used are stated.
The result and its conversion are two different calculations. The first operation produces an amount in the quote currency. The second expresses it in another currency. Preserving both values helps identify whether a discrepancy comes from the position or from conversion.
Now take an invented cross-currency example. A purchase of 20,000 GBP of GBP/JPY moving from 190.00 to 190.10 produces 2,000 JPY gross. If we adopt 150 JPY per USD for conversion, the result is approximately 13.3333 USD. A change of ten hundredths of a yen per pound cannot be interpreted directly as dollars.
When reviewing actual study data, you need to know whether the platform converts at closing, valuation or report preparation, and which charges it includes. Do not replace that convention with the one used in an exercise. An accounting conversion for valuation and an actual balance exchange may represent different events.
Pair orientation matters too. Multiplying by EUR/USD and dividing by USD/EUR are not interchangeable instructions if the stored rate does not correspond to its label. Always write the numerator and denominator units; their cancellation shows the appropriate operation.
In a software test, preserve one case where account currency matches quote currency and another where they differ. The first avoids unnecessary conversions; the second reveals functions that silently assume every account is denominated in dollars.
You do not need to build a complete conversion engine to understand one position. You do need to state the rate applied and recognise which part of the calculation depends on it. That small record prevents attributing a monetary change from another currency to the signal.
Distinguish notional, margin and sensitivity
The hypothetical purchase of 25,000 EUR at 1.0800 has a notional equivalent of 27,000 USD. Its one-pip sensitivity is 2.50 USD. Neither number, by itself, describes the collateral required to maintain the position.
Suppose, solely for this exercise, that 1,350 USD of collateral is required. That amount does not enter the multiplication of units and movement that produces 30 USD for twelve pips. If a hypothetical contractual condition doubled the collateral, sensitivity for the same quantity would remain 2.50 USD per pip.
The CFTC explains that margin allows exposures larger than the amount deposited and amplifies gains and losses relative to those funds. Its advisory concerns the market and framework it supervises; our interest here is the economic distinction, rather than transferring regulatory conditions to any account. CFTC information on Forex.
Margin describes a funding requirement, not an automatic loss limit. Understanding a liquidation or restriction requires checking the account’s specific conditions. The 1,350 USD example only helps separate concepts; it does not describe an offer or a current requirement.
Confusion often appears when comparing returns over different denominators. The same 30 USD is approximately 2.22% of 1,350 USD, 0.30% of an assumed equity of 10,000 USD and 0.11% of the 27,000 USD notional. These are different ratios applied to the same result.
Do not choose the largest percentage to describe the robot. Specify the denominator and its purpose. Equity can help study what a monetary variation represents in the account. Notional describes contractual scale. Collateral supports analysis of a funding restriction. Mixing them prevents meaningful comparisons.
Equity can also change while the position is open. If you calculate a percentage using its initial value, preserve that convention. If you use current equity, the denominator moves too. No abbreviated label replaces stating how the ratio was obtained.
A useful check varies margin hypothetically while keeping units and price unchanged. The model’s gross profit should not change. If it does, investigate whether your program resized the position or mistakenly uses collateral as the traded quantity.
Interpret an exit distance
With 25,000 EUR and an adverse distance of twenty pips, the projected gross calculation is a 50 USD loss. It multiplies distance by sensitivity: twenty times 2.50. The result assumes closing exactly at the price used to define that distance and excludes additional costs.
Distance is a condition of the scenario, not a guarantee about the path. If closing occurs thirty-five adverse pips away, the gross loss would be 87.50 USD. The 37.50 difference comes from another fifteen pips with the same quantity. The entry rule need not change for the result to change.
OANDA’s margin documentation warns that gaps can cause stops to execute at less favourable prices. Conditions depend on the order and contract; an ordinary order should not be treated as an implicit guarantee. Margin and stop conditions.
A loss calculated at a particular distance remains a scenario. You can use it to understand a sizing formula, but must preserve the execution assumption supporting it. Calling it a “maximum loss” without justifying that limit changes the number’s meaning.
The point from which distance is measured also needs definition. An exit level relative to the signal price may be a different distance from the actual executed price. If a purchase enters higher than expected while keeping the same absolute exit level, the monetary distance increases.
The review task is to preserve reference price, executed entry price, requested level and exit price. This separates an error in the initial calculation from a later execution difference. Combining all those events in one column removes precisely the information you need.
For learning, compare an example with distance fixed in pips and another with an absolute level fixed. Alter the entry in both: in the first, recalculate the exit to preserve distance; in the second, retain the exit level and calculate the new distance. They are different specifications, even if an interface presents them within the same panel.
Sensitivity analysis does not decide where to place an exit. It explains how to translate a defined distance into money and which assumptions need review before that number is used in another decision.
Solve for quantity under explicit assumptions
We can reverse the calculation without turning it into a recommendation. Imagine an educational budget of 100 USD and an assumed adverse distance of 0.0020 USD per EUR. Ignoring all costs and any execution difference, dividing 100 by 0.0020 gives 50,000 EUR.
The result answers an equation, rather than determining a quantity suitable for a person. Budget, distance and execution are inputs selected for the exercise. If any is misinterpreted, the algebra can remain mathematically correct while being economically inappropriate.
Now add an invented cost structure: 3 USD fixed and 1.20 USD per 10,000 EUR of quantity for the complete round trip. The proportional component is equivalent to 0.00012 USD per EUR. Modelled loss becomes quantity multiplied by 0.00212, plus 3 USD.
For that total to equal 100 USD, the numerator available for proportional components is 97 USD. Dividing it by 0.00212 gives approximately 45,754.717 EUR. Quantity decreases because part of the budget is allocated to the costs included in the model.
Solving requires including the same items you will later measure. If you calculate quantity while ignoring a commission and then compare net loss with the budget, you are comparing two different definitions. Renaming the column does not fix the problem.
Fixed costs also create a boundary. If the budget were smaller than the assumed fixed charge, this equation would have no positive quantity satisfying the limit. The program should return an explicit condition, rather than a negative quantity that another function interprets as a sale.
The structure used here is deliberately simple. A tiered cost, a minimum commission or a variable conversion requires another function. It can be solved by evaluating permitted quantities and checking the condition for each; there is no obligation to force every contract into a closed-form formula.
Before automating the calculation, preserve an example solved by hand. Then substitute the calculated quantity into the original equation. This round trip checks whether the result really satisfies the condition you intended to impose, rather than relying only on the division producing no error.
Apply rounding and restrictions
The theoretical quantity above need not be admissible. Suppose, again as an invented condition, that only multiples of 1,000 EUR are permitted. Rounding down gives 45,000 EUR. Under the previous formula, modelled loss would be 90 USD from the movement, 5.40 in proportional costs and 3 fixed: 98.40 USD.
Rounding to the nearest multiple would give 46,000 EUR. The same calculation produces 92 USD from movement, 5.52 in proportional costs and 3 fixed: 100.52 USD. That small difference exceeds the hypothetical budget. Rounding therefore changes a property the program intended to preserve.
The admissible quantity must pass the complete check again. Checking the continuous quantity before adapting it to an order format is insufficient. What matters for this condition is the final quantity, after minimums, increments and any adjustment have been applied.
The minimum quantity may prevent the exercise’s trade. If the smallest permitted quantity exceeds the modelled budget, the response consistent with that criterion is to produce no admissible quantity. Forcing the minimum to avoid an empty result abandons the original condition and must be treated as a different decision.
Decimals introduce another problem. A number can look rounded on screen while retaining greater precision internally. Define when quantity is rounded, when money is rounded and when only presentation changes. Rounding every intermediate calculation can differ from rounding the final total.
To check that policy, use values close to a boundary and repeat with a minimum increment on either side. You do not need thousands of random examples to discover an upward-rounding error. A case deliberately selected near the limit often explains the problem more clearly.
Restrictions are part of the sizing specification. They are not a cosmetic correction added after a simulation. If a backtest allows quantities that execution does not permit, comparison between those procedures already contains a structural difference.
The robot’s record should preserve requested quantity, adjusted quantity and the reason for adjustment. That traceability distinguishes a sensitivity change chosen by the rule from one imposed by instrument conditions.
Follow quantities that change over time
So far we have held quantity fixed during a trade. A robot may calculate it again when opening each position or modify it through partial fills. In that case, one “initial size” column no longer describes exposure throughout the path.
Suppose a position starts at 25,000 EUR and is reduced by 10,000. Open quantity becomes 15,000 EUR. Under the same model, its subsequent sensitivity is 1.50 USD per pip. Already realised gains or losses belong to the closed portion; future variations affect the portion remaining open.
Sensitivity follows the quantity actually open. If an order requests a 10,000 reduction but only 6,000 fills, the remaining position would be 19,000 and its sensitivity 1.90 USD per pip. Using requested rather than executed quantity can describe an exposure that does not yet exist.
To study the path, construct an event table with time, previous quantity, signed fill and subsequent quantity. The sum should reconcile. An additional purchase increases units; a sale may reduce them or reverse the position depending on the system’s state and rules.
Size may also change between trades because equity changes. If a rule uses a fraction of observed equity, you need to know when it is observed, whether it includes unrealised results and what happens to deposits or withdrawals. Otherwise, two simulations can apply the same formula to different denominators.
There is no need to decide here which policy is better. The question is whether a specific quantity can be reconstructed from information available at that moment. Using equity known only at the end of a trade to size its beginning would introduce an incorrect temporal dependency.
A useful exercise holds signals fixed and compares constant quantities with quantities recalculated under an explicit rule. Preserve the sequence of calculations and separate the sizing effect from the selection effect. A different monetary curve does not imply that entries changed.
This review ends with an explainable state function: given defined equity, the open position and restrictions, the program produces a quantity and a reason. If an input is missing, preserving the failure is preferable to replacing it with a value that produces an apparently valid order.
Recognise when proportionality fails
Doubling quantity doubles gross profit or loss in the linear model with fixed execution prices. That sentence includes important conditions. It does not mean every real trade can scale indefinitely while preserving the same price, cost or ability to execute.
We can demonstrate a break with an invented liquidity example. Suppose a purchase can execute its first 10,000 units at 1.0802 and its next 10,000 at 1.0804. The 20,000 purchase has an average price of 1.0803. The 10,000 purchase uses 1.0802. Changing quantity has also changed the average price.
If both hypothetically close at 1.0810, the 10,000-unit purchase produces 8 USD gross and the 20,000-unit purchase produces 14 USD. Doubling quantity does not produce 16 USD because we changed a model condition: the entry price available for the entire quantity.
A linear relationship requires its other inputs to remain fixed. The example does not claim that this depth exists in any particular market. It identifies which assumption must be abandoned when the simulator represents multiple price levels.
Minimum costs create another break. If a commission has a minimum per trade, substantially reducing quantity may leave the charge unchanged. Gross results still scale, but net results per unit change. With a purely proportional cost, its contribution can scale; the two structures need to be distinguished.
A discontinuity may also appear at a restriction. A slightly larger quantity can trigger rejection, partial execution or a policy for splitting orders within the model. Comparing quantities on either side of that threshold requires examining events, not only a profit formula.
To check sensitivity, separate two experiments. In the first, freeze prices and costs to verify arithmetic. In the second, allow the execution model to respond to quantity and study the complete result. Mixing them can make a legitimate execution difference look like a mathematical error.
This distinction helps when reading a robot supplied with rules and code. You can first check whether its elementary calculation is consistent and then ask which execution conditions it represents. Neither task requires revealing the private generator or attributing undocumented capabilities to the code.
Design tests that reveal scaling errors
A small set of carefully chosen tests can cover the main ambiguities. Begin with zero movement, one favourable pip and one adverse pip. Repeat for purchases and sales with known quantities. Every answer should identify its currency and whether it represents a gross or net amount.
Then check proportionality under frozen conditions. If you double quantity while holding prices, conversion and proportional components fixed, the corresponding part should double. Keep any fixed cost separate, because it need not obey that relationship. The property applies to a defined model, rather than a general profit label.
For conversion, check one case with a rate of one and another with a simple rate whose result you can calculate mentally. This reveals reversed multiplication and division. Highly realistic figures can conceal an error when they all produce similar results.
A useful test specifies what should change and what should remain unchanged. Changing quantity, currency, price and commission simultaneously makes a failure harder to explain. Combined cases have value after the basic pieces are checked, when you look for interactions between them.
Add invalid inputs. A missing conversion rate should not silently become one. In the formula without costs, Q = B / d, a zero distance causes division by zero. In the earlier model with proportional costs, Q = (B − 3) / (d + 0.00012), the denominator remains positive when d is zero. Rejecting that scenario may be a model policy, but it must be distinguished from an arithmetic impossibility. A non-numeric quantity needs an explicit response. The specific policy may vary, but it should be observable.
If you use an AI to write these tests, prepare at least some manual results yourself. Asking the same tool to copy the production formula and use it as a reference can create a circular comparison. The test’s purpose is to provide a check independent of the main path.
Save the case that revealed each error. When correcting a confusion between lots and units, preserve an input where the difference is obvious. That example protects the interpretation through later changes and explains why the check exists.
For further work, the article on independent tests for AI-generated code develops ways to build references and properties without relying solely on another automated answer.
Prepare a reviewable sensitivity sheet
The final deliverable can be one page per instrument and account convention. It should identify quantity unit, price orientation, pip size, direction, result currency and conversion rule. Add a numerical example and the version of the functions producing it.
Include three hypothetical quantities for one movement and one quantity for several movements. This double view distinguishes sensitivity to size from sensitivity to price. Do not present the table as a forecast: scenarios show conditional consequences without assigning probabilities.
The sheet should preserve the assumptions that make the multiplication valid. State whether prices are frozen, whether fixed costs exist, whether conversion changes and whether size restrictions apply. When an assumption stops holding, another person should be able to locate the part needing recalculation.
Add a reconciliation between theoretical and final quantity. In our example, 45,754.717 EUR becomes 45,000 under an invented restriction, and modelled loss is 98.40 USD. Preserving only the last number would hide a decision that matters for reproducing the procedure.
If you study several simultaneous positions, this sheet becomes an input to another analysis. Adding quantities across different pairs without normalising them does not create a coherent portfolio measure. The article on gross and net exposure in a robot portfolio addresses that next question.
The document should also state what it does not check. A correct sensitivity formula does not demonstrate an advantage in the signal, a probability of recovery or execution quality. It helps detect interpretation errors and formulate more precise questions about the system.
Before finishing, ask another person to reconstruct a case without looking at your final result. If they need to ask what a column means, you have found a concrete improvement for the sheet. If they disagree over a charge, compare definitions before looking for a market difference.
This work becomes valuable when a curve changes and you can explain how much comes from rules, how much from quantities and how much from monetary assumptions. Could you justify today, with units and a complete trade, how much your robot’s result changes for one additional pip?



