Start with the loss you want to model
Suppose a USD-denominated demo account is testing a hypothetical EUR/USD trade. Set a planned loss of $20 and a stop distance of 40 pips. These are assumptions for the calculation. On EUR/USD, one pip is 0.0001 USD per euro. For 1,000 euros, a one-pip change is therefore worth $0.10. With a USD account, this example needs no conversion between the quote currency and the account currency.
Calculate pip value, then units
Divide $20 by 40 pips to get a target pip value of $0.50. Divide that figure by 0.0001 USD per euro to get 5,000 euros, or 0.05 of a 100,000-unit standard lot. The calculation assumes that the platform accepts that size and that the exit is exactly 40 pips away. If your platform only accepts increments of 1,000 units and the calculation produces 4,600, rounding down to 4,000 keeps the modeled amount below the target before costs.
Check the loss again with costs and slippage
With 5,000 units, a 40-pip adverse move costs $20 before fees. A fill 3 pips beyond the assumed stop raises the gross loss to $21.50. If separate round-trip charges are $2, the total in that scenario is $23.50. A spread may already be reflected in the entry and exit quotes you used. Check the bid and ask convention before adding it again. ASIC’s consumer guide explains how liquidity and execution affect forex transactions [2].
Keep required margin separate
Required margin is the collateral a dealer asks you to provide to hold a position. It does not determine how much that position can lose. The SEC explains how retail off-exchange forex uses margin and leverage [1]. In a demo, record the trade size, quoted entry, stop trigger, fill and charges in separate fields. Compare the statement with your estimate to see which assumption caused any difference.
Sources and further reading
Related guides
CFDs and leveraged forex products are high risk. You can lose all of your deposited funds. ForexLuma provides education, not personal investment advice.