TradeViora AcademyLearn. Analyze. Practice. Trade Smarter.
Menu

FREE FINANCIAL EDUCATION

Trade-order Monte Carlo with stateful sizing

Reapply a sizing rule to every simulated ordering instead of shuffling final cash profits.

0%

What you will learn

Prerequisites: Compound proportional outcomes and distinguish a return sequence from the rule that sizes it.

Mechanism and decision rules

A trade-order simulation rearranges a fixed set of outcomes to examine path sensitivity. With a constant fraction applied to each proportional return, terminal wealth is the product of the same growth factors and does not change when their order changes, although drawdowns can. If sizing responds to earlier losses, equity thresholds or withdrawals, the factors themselves depend on the path and terminal wealth can change too.

Replay the sizing state from the same initial conditions for every scenario. Shuffling already-sized currency P&Ls while retaining their original quantities answers a different question. The example below uses an invented rule: invest the full current wealth fraction until the first negative trade, then use half the current wealth for every later trade. It illustrates state dependence, not a proposed live risk policy. Exact enumeration of a small set is the transparent counterpart of randomly sampling many permutations.

Worked example · synthetic data

Start hypothetical wealth at 100 with returns +20%, −20%, +20%, −20%. Under the stated rule, wealth runs 100→120→96→105.6→95.04. Reorder the same outcomes as −20%, −20%, +20%, +20%; wealth becomes 100→80→72→79.2→87.12. There are six distinct orderings because two wins and two losses repeat. By contrast, using the full fraction throughout every path gives the same terminal value 100×1.2²×0.8²=92.16. The differing stateful results are caused by changed sizing after the first loss.

Failure modes and limits

Arbitrary shuffling removes serial dependence and can produce sequences incompatible with market regimes or overlapping trades. A trade-order scenario does not estimate a future probability distribution unless its resampling assumptions are justified. Include capital limits and costs inside the replay, and keep source outcomes separate from simulated paths. A favorable reshuffled percentile is not a reason to discard the actual historical order or to claim the sizing rule is profitable.

Practice case

With starting wealth 100 and returns +10%, −10%, +10%, apply the same permanent half-sizing rule after the first negative trade. Calculate terminal wealth for that order and for −10%, +10%, +10%. Also calculate the constant-full-fraction terminal value to show which effect depends on the sequence.

Reveal the worked answer

The first path is 100→110→99→103.95. The second is 100→90→94.5→99.225. Constant full sizing gives 100×1.1×0.9×1.1=108.9 in either order. The stateful simulation must recompute each position fraction from its own preceding outcomes, rather than copying the position sizes produced by the original sequence.

Check your understanding

Why can the stateful terminal values differ?


Explanation

Different order changes the sizing state, so the applied wealth factors differ.

What is the constant-full-fraction worked terminal value?


Explanation

Multiplying two 1.2 factors and two 0.8 factors gives the same product in any order.

Are reshuffled paths additional historical observations?


Explanation

They are constructed scenarios conditional on the supplied outcomes and resampling rule.

Sources and next steps

The lesson, calculations and synthetic cases are original educational material. References explain underlying contract or chart conventions; none validates the profitability of a trading rule. Actual contract specifications, settlement obligations and charges must be checked before trading.

Explore OHLCV data in the chart lab · Explore volume-at-price and TPO data · Practice library