Portfolio exposure · Entered sensitivity shocks

Portfolio Stress Test Calculator

Apply user-entered percentage shocks to up to 20 long or short position values expressed in one consistent account-currency basis. The calculator reconciles row contributions, total scenario P/L and post-stress equity as a first-order sensitivity exercise—not as a forecast, probability or complete institutional stress test.

User-entered shocksLinear sensitivity onlyNo probability

Enter one consistent shock scenario

Use one pipe-separated row per position: label | long or short | same-unit exposure value | price shock percent.

Entered

Short label applied to every value in this scenario.

Positive equity in the same entered currency or value unit.

One to 20 rows. A positive shock means the entered instrument price rises.

Sensitivity boundary: Each row uses direction × entered exposure × entered shock. The model does not reprice options, infer a crisis, model liquidity or determine whether the shocks are plausible.

Linear scenario impact

Entered Portfolio Exposure and Stress 1.0.0.

Derived
No stress scenario calculated yetEnter starting equity and at least one complete same-unit position row.

How the entered portfolio stress test is calculated

Row P/L = Direction × Exposure value × Shock % ÷ 100
Total scenario P/L = Sum of row P/L
Post-stress equity = Starting equity + Total scenario P/L

Version 1.0.0 treats long as a +1 direction factor and short as −1. A negative shock therefore hurts a long row but helps a short row, while a positive shock has the opposite sign effect.

Every exposure must already be valued in the same declared currency or unit. The engine multiplies each exposure by its entered price shock and direction, then preserves the signed contribution instead of clipping losses or gains.

Net scenario P/L is the sum of signed contributions. Gross absolute contribution adds their magnitudes and reveals how much offsetting exists, while separate loss and gain totals reconcile exactly to the net.

Post-stress equity adds the entered net scenario P/L to starting equity. The equity-impact percentage uses starting equity as its denominator and can exceed a 100% loss when the entered linear losses exceed equity.

Federal Reserve guidance describes sensitivity analysis as stressing variables or inputs and warns that relationships may become nonlinear in stressed conditions. This page follows the narrow sensitivity concept and prominently retains that limitation.

Worked example from the audited fixture

The audited fixture starts with USD 50,000 equity and enters three rows: long EUR/USD value 100,000 shocked −2%, short USD/JPY value 75,000 shocked +1.5%, and long XAU/USD value 20,000 shocked +3%.

  1. The row contributions are −2,000, −1,125 and +600 USD. Gross absolute contribution is 3,725 USD, losses total −3,125 USD and gains total +600 USD.
  2. Net scenario P/L is −2,525 USD, post-stress equity is 47,475 USD and the entered scenario impact is −5.05% of starting equity.

Reproduce it: select “Load audited example” above. The governed engine retains full precision and rounds only the visible interface.

How to interpret the result

  • The primary result answers what the entered linear shocks do to the entered exposure values—not what markets will do.
  • A positive contribution from a short row under a negative price shock reflects the direction convention. It does not account for borrowing, financing or execution.
  • Gross absolute contribution can be much larger than net P/L when gains and losses offset. Netting can hide large opposing sensitivities.
  • The largest adverse row identifies the most negative entered contribution, not the riskiest instrument under every possible scenario.
  • A positive total does not make the portfolio resilient; an omitted factor or nonlinear exposure can reverse the result.
  • Run several documented scenarios if useful, but do not choose only the scenario that supports a preferred decision.

Assumptions and limits

  • Shocks are supplied by the user and are not historical estimates, probabilities or Federal Reserve supervisory scenarios.
  • The linear formula can be inappropriate for options, barriers, changing deltas and other nonlinear instruments.
  • The model does not change exposure as prices move, simulate paths or account for correlation and feedback between rows.
  • Liquidity, gaps, spreads, commission, financing, conversion, tax, margin, liquidation and stop execution are excluded.
  • Entered exposure values may use different price dates or conventions unless the user standardizes them.
  • Institutional stress testing includes governance, scenario design, validation and broader balance-sheet effects that this browser calculation does not reproduce.
  • No resilience grade, loss probability, maximum-loss claim, position change, forecast, signal or recommendation is generated.

Currency exposure vs stress vs concentration

These calculations are complementary, not interchangeable. Currency exposure preserves native FX legs, stress testing applies entered same-unit shocks, concentration measures entered share unevenness and portfolio volatility uses covariance assumptions. None of them alone establishes suitability or future loss.

Comparison of portfolio exposure calculations, evidence, outputs and boundaries
MeasureEvidence enteredQuestion answeredMain boundary
Currency exposureFX pair, direction, base units and reference priceLong, short and net native units by currencyNo cross-currency total or hedge decision.
Portfolio stressSame-unit directional exposure and entered shockFirst-order scenario P/L and equity reconciliationNo probability, nonlinear repricing or complete stress program.
Portfolio concentrationPositive absolute values in one unitHHI, effective positions and top sharesNo covariance, look-through or diversification grade.
Portfolio volatilityWeights, volatilities and correlation matrixCovariance-based dispersionA separate assumptions-based risk model.

Frequently asked questions

  • It applies each entered price shock to one same-unit directional exposure value and reconciles row contributions with total scenario P/L and post-stress equity.
  • Version 1.0.0 multiplies long by plus one or short by minus one, then multiplies by entered exposure value and entered shock percent divided by 100.
  • It means the entered instrument price rises; that helps a linear long row and hurts a linear short row before omitted costs.
  • Yes. Every row and starting equity must share one declared account-currency or value-unit basis for the totals to be meaningful.
  • No. It is a narrow first-order sensitivity calculation and does not reproduce scenario governance, validation, nonlinear repricing or balance-sheet effects.
  • No. They are user-selected what-if inputs and the calculator does not determine whether they are plausible, likely or exhaustive.
  • Only if an appropriate exposure value already represents the intended first-order sensitivity; the page does not reprice options or changing deltas.
  • No. Omitted factors, liquidity, gaps, costs, margin, changing exposure and other scenarios can materially change the result.

Sources and methodology

The immutable implementation contract fixes row parsing, direction signs, normalization, invalid states, reconciliations and permanent exclusions so later copy or layout edits cannot silently change the arithmetic.

Verify the position values and execution terms

Before using a position, exposure or scenario value, confirm the exact symbol, contract basis, account currency, conversion, spread, commission, financing and execution records for the broker entity and account involved. These browser calculations cannot certify that entered evidence is current or complete.

XM

Review the applicable symbol specifications, statements and execution terms.

Check XM terms

FBS

Confirm instrument values and account-history conventions for your region.

Check FBS terms

FXOpen

Verify contract, charge and execution records before entering values.

Check FXOpen terms

Risk and affiliate disclosure: Leveraged forex and CFD trading can result in substantial losses. These are affiliate links, so ForexMT4Indicators.com may receive compensation if you register or trade through them, at no additional cost to you. Availability and terms vary by jurisdiction and broker entity.

Disclaimer: The results from this tool are estimates for educational and informational purposes only and may differ from your broker's figures. This is not financial or investment advice. Trading forex and CFDs carries a high level of risk and can result in the loss of all your capital. Always verify calculations with your broker and trade within your risk tolerance.