Risk Management

Forex Position Sizing and Risk Per Trade

Learn forex position sizing: calculate units from risk amount, stop distance, and pip value, with worked examples and OANDA webhook sizing options.

Tom Hartman

Marketing

10 Min Read Reviewed by Mike Christensen Fact-checked by Mike Christensen
BluSky — The Future of Trading. Prop firm futures trading. Sign up at BluSky.pro.

Bottom Line

  • Size from an accepted loss amount, not from maximum available margin.
  • Calculate units from risk amount, stop pips, and pip value per unit.
  • Convert pip value into the account currency before calculating units.
  • Keep the quantity and corresponding stop in the same alert or sizing configuration.
  • Allow for gaps, rejected orders, and correlated portfolio exposure.

Forex position sizing converts the loss you are prepared to accept into a specific number of currency units. The core calculation uses three inputs: risk amount, stop distance in pips, and pip value per unit.

The result should be calculated before the order is placed. You can then send the units from your own TradingView alert through TradersPost or use subscription settings to calculate the quantity from account equity and the planned stop.

The examples below cover USD-quoted pairs, yen pairs, cross-currency conversion, webhook payloads, and situations where the realized loss can exceed the amount calculated.

Why Size From Risk, Not Margin

Margin Shows Capacity, Not Loss

Margin is the collateral required to open and maintain a leveraged position. It indicates whether the account can support an order, not whether the potential loss fits the trader's plan.1

A position can satisfy the broker's margin requirement while exposing the account to a larger loss than intended. Risk-based sizing asks a separate question: how many units can be traded if the position is exited at the planned stop?

What Forex Position Sizing Means

Position sizing determines how many units to trade according to a desired level of risk.2 It translates a fixed currency amount or percentage decision into the base-currency units used for the order.

Do this before entry. Working out the risk after the order is placed gets the order backward and can leave the position larger than your loss limit supports.

Choosing Risk Per Trade

Risk per trade can be a fixed amount, such as $100, or a percentage of current account equity. Neither method produces a universally correct risk level. The trader chooses the limit based on account size, strategy behavior, concurrent positions, and personal tolerance.

Forex trading on margin is high risk and not suitable for everyone, because leverage magnifies losses as well as gains and you can lose money quickly.

OANDA's own guidance is to never leverage your entire account balance, because the more of your funds you use as margin, the greater your risk of margin closeout.2 For more detail, see forex leverage and margin.

The Forex Position Sizing Formula

Units Equal Risk Over Stop Pips

Formula: units = risk amount / (stop distance in pips x pip value per unit).

Set all three inputs before calculating the order:

  • Risk amount in the account currency
  • Distance from planned entry to stop, measured in pips
  • Pip value for one unit, expressed in the account currency

A wider stop produces fewer units when the risk amount and pip value stay constant. A larger risk amount produces more units. A different pair can change the pip value and therefore change the quantity.

What A Pip Represents

A pip is the smallest standardized move by which a quote can change, and traders use pips to describe position gains and losses.3 Most currency pairs use the fourth decimal place, making one pip 0.0001. Yen pairs normally use the second decimal place, making one pip 0.01.3

Quotes may display an additional decimal place called a pipette. Keep the calculation in full pips unless the strategy deliberately measures its stop in fractional pips. See what a pip means in forex for more examples.

Finding Pip Value Per Unit

For a pair where the account currency is the quote currency, pip value per unit equals the pip size. EUR/USD in a USD account therefore has a pip value of $0.0001 per EUR unit.

Pip value scales linearly with quantity. At 10,000 units, a USD-quoted pair has a $1 pip value. At 40,000 units, the same pair has a $4 pip value. The same pip movement therefore creates a larger account-currency change as the position grows.

Worked Examples By Pair Type

Sizing A USD-Quoted Pair

Assume a USD account, a EUR/USD entry, a $100 risk amount, and a 25-pip stop. One pip is 0.0001 for a pair quoted to four decimal places.3

Calculation: $100 / (25 x $0.0001) = 40,000 units.

A 40,000-unit position has a pip value of $4. A 25-pip movement to the stop is therefore $100 before slippage and other execution differences.

Sizing A Yen Pair

Now assume USD/JPY is 150.00, the account is in USD, risk remains $100, and the stop remains 25 pips. One yen-pair pip is 0.01 JPY per unit.3

Convert that pip value to USD at the illustrative rate of 150 JPY per USD:

Pip value: 0.01 / 150 = $0.00006667 per unit.

Units: $100 / (25 x $0.00006667) = approximately 60,000 units.

Why Pip Values Differ

The 40,000-unit EUR/USD result and 60,000-unit USD/JPY result are not interchangeable. Their pip sizes differ, and the yen pip must also be translated into the account currency.

Recalculate pip value for every pair and current conversion rate. Reusing a previous pair's value can understate or overstate the planned account risk.

When Account Currency Differs

Why Pip Value Changes

A pip initially has a value in the pair's quote currency. If that currency differs from the account currency, the value must be converted before the position-size formula is applied.

A similar conversion applies to margin. When an instrument's base currency differs from the account currency, OANDA calculates margin in the base currency and converts it at the prevailing exchange rate.2

Convert To Account Currency

First calculate the pip value in the quote currency. Then multiply or divide by the applicable exchange rate so the result is expressed in the account currency. The direction of conversion depends on how the conversion pair is quoted.

For an OANDA connection, TradersPost calculates Amount per position, Risk per position, and Percent of equity in the currency in which the account is held. This keeps the sizing input consistent with account balances and unrealized profit or loss.

Cross-Currency Worked Example

Assume a USD account trading EUR/GBP, with GBP/USD at an illustrative 1.2500. One pip on EUR/GBP equals 0.0001 GBP per EUR unit. Converted to USD, the pip value is 0.0001 x 1.2500, or $0.000125 per unit.

With $100 of risk and a 20-pip stop:

Units: $100 / (20 x $0.000125) = 40,000 units.

Skipping the GBP-to-USD conversion would produce a different quantity and would not represent the intended $100 account risk.

Send The Size In The Alert

Compute Units Before Alerting

A TradingView script can calculate the risk amount, stop distance, pip value, and final whole-unit quantity before the alert fires. This keeps the sizing model inside the trader's own strategy.

For the earlier EUR/USD example, the alert could send:

{ "ticker": "EUR/USD", "action": "buy", "quantity": 40000, "quantityType": "fixed_quantity", "orderType": "market", "price": "{{close}}", "stopLoss": { "type": "stop", "stopPrice": 1.0775 } }

Map The Payload Fields

The webhook JSON can carry ticker, action, quantity, quantityType, orderType, and stopLoss. Setting quantityType to fixed_quantity tells the platform to use the quantity exactly as sent.

The trader's own TradingView alert sends the computed quantity to the strategy webhook. TradersPost then uses those fields to place the order in the trader's connected OANDA account. See the TradingView and OANDA automation workflow for the broader signal path.

Pair Quantity With Stop Loss

The stopLoss object can include an absolute stopPrice and a type. Put the same stop used by the sizing calculation in the payload so the quantity and protective order share one source of truth.

If a script calculates quantity from a 25-pip stop but sends a 40-pip stop, the resulting order risks more than the sizing model intended.

Let TradersPost Size The Order

Risk Versus Percent Equity

Risk per position divides a fixed risk amount by the distance between the planned entry and stop. It requires a configured stop loss. Percent of equity instead calculates an amount per position from portfolio value after accounting for unrealized profit or loss. It does not use buying power or margin.

These settings answer different questions. Risk per position targets a loss at the stop. Percent of equity controls position notional value, so it is not equivalent to risking that percentage of equity.

Account Currency And Whole Units

For an OANDA subscription, both settings use the account currency. Order quantities are base-currency units, decimals are rounded down, and fractional quantity cannot be enabled.

Rounding down means the order is slightly smaller than the calculation, never larger.

Review Before Submission

When auto submit is off, Manual Submit holds each calculated trade for approval or rejection before sending it to the broker. The review should compare the displayed units, entry estimate, account currency, stop price, and intended risk amount.

This step can catch a misplaced decimal, stale conversion rate, incorrect pair, or stop entered on the wrong side of the market.

Confirm the calculated units and stop distance across several pair types.

When A Stop Won't Cap Loss

Weekend And Holiday Gaps

OANDA's forex market generally runs from Sunday at 17:05 to Friday at 16:59 New York time, with a daily six-minute break from 16:59 to 17:05.4 Trading times can change for daylight saving time and public holidays.

OANDA states that you cannot close existing positions or open new ones while the market is closed.4

When trading resumes, price can gap through the stop. The order then executes at the prevailing market rate, which may differ materially from the specified stop and create a larger loss.4

Fill Or Kill Orders

Market orders sent through the OANDA connection use fill or kill by default. If OANDA cannot fill the whole quantity at once, the order is cancelled rather than partly filled. Sending "timeInForce": "ioc" allows an immediate partial fill, with any unfilled quantity canceled.

A cancelled entry opens no position, so no stop is attached either. Check your trade log for cancelled entries separately from filled trades that later reach their stops.

Correlated Positions Add Up

Several positions tied to the same currency can respond to one underlying move. OANDA warns that when positions are related, the risk of a price swing is multiplied by the number of open positions.2

Per-trade sizing does not cap this shared exposure. A portfolio-level check should consider:

  • Total risk across all open stops
  • Repeated exposure to the same base or quote currency
  • Pending entries that could activate together
  • Remaining margin and cash reserves

See currency correlation in forex for a framework for grouping related pair exposure.

Test the complete calculation, including conversion rates, whole-unit rounding, webhook fields, and stop placement. A correct formula is only useful when the quantity and stop reaching the broker match the values used by the strategy.

Frequently Asked Questions

How Much Should I Risk?

There is no single correct percentage. Risk per trade is a decision based on the trader's tolerance, account structure, strategy, and combined exposure. Avoid using the entire balance as margin, and retain a reserve for adverse movement and other open positions.

What Are Forex Lot Sizes?

Lots are industry shorthand: a standard lot is 100,000 units of the base currency, a mini lot 10,000 and a micro lot 1,000. OANDA orders are sized in units, so translate any lot figure into units before sending it.

Does a Stop Cap My Loss?

No. A stop-loss order can execute at a worse price when the market gaps. A position also cannot be closed while the market is closed, even if the next available price is already beyond the stop.

Does Sizing Replace Margin?

No. The account must still meet the margin requirement for the calculated quantity. Margin needed to open a trade is derived from the leverage limit associated with the instrument, independently of the trader's risk calculation.2

How Does Correlation Affect Sizing?

Multiple positions tied to the same currency can compound exposure to one move. Sizing each trade independently limits its planned stop risk, but it does not cap the combined risk across correlated pairs.

References

1 OANDA: How to Day Trade With Margin
2 OANDA: What Is Margin in Leverage Trading?
3 OANDA: What Is a Pip in Trading?
4 OANDA Hours of Operation

  • Risk Management Nov 20, 2026

    What Is a Pip? Pips, Units and Lots

    A pip is the fourth decimal on most forex pairs and the second on yen pairs. Learn pip value math, pipettes, lots versus units, and sizing a stop in units.

  • Risk Management Nov 20, 2026

    Forex Leverage and Margin Explained

    How forex margin and leverage work, a worked gain-and-loss example, OANDA margin closeout rules, and CFTC and ASIC leverage limits explained.

  • Risk Management Sep 24, 2026

    Real-Time Algo Monitoring: What to Track

    A breakdown of real-time algo monitoring: the four layers to track, alert thresholds that avoid fatigue, and how to diagnose failures fast.

  • Risk Management Sep 24, 2026

    Gamma Risk Vs Gap Risk

    Gamma risk and gap risk both defeat stop-losses, but for different reasons. Compare their causes, overlap, and how to size and manage each one.

Ready to put what you read into practice?

Free 7-day trial

Set-up in 3 minutes

Paper account for testing

By continuing, you agree to the TradersPost Terms of Service and Privacy Policy. This site is protected by reCAPTCHA.