Start with money at risk, not lot size
The lesson repeatedly starts with a maximum loss in account currency or as a percentage of equity. The stop distance is determined by the trade structure; the position size is then chosen so that a stop-out remains close to the predefined loss budget.
Define the maximum amount the trade is allowed to lose.
Measure the distance from entry to the protective stop.
Use the broker's tick size, tick value and contract specification.
Calculate volume from risk, distance and value per price increment.
The transcript's simplified examples
One example uses a $4,500 account, a $100 risk budget and a 35-pip stop, producing approximately 0.29 lots under the lesson's assumed $10-per-pip convention. Another example defines risk as 1% of $4,500 ($45) with a 28-pip stop.
Those examples are useful for understanding the relationship between risk and stop distance, but the shortcut risk ÷ stop ÷ 10 is not universal. The value of a pip or tick changes with symbol, contract size, quote currency, account currency and broker specification.
A production-safe sizing formula
For MT5, the implementation should read symbol properties dynamically rather than assume that every instrument behaves like a major FX pair. For exchange APIs, equivalent contract and quantity rules should be taken from the venue's symbol metadata.
Why risk percentage is useful
The source favors small predefined risk and warns against oversized positions and trading without protective stops. A percentage model also scales the monetary risk with account equity. The specific percentage remains a strategy parameter rather than a universal rule.
Slippage and execution are part of risk
The transcript acknowledges small deviations caused by slippage. A production risk engine should go further: account for spread, commission, price gaps, minimum volume increments and the fact that a stop order does not guarantee an exact fill price.
Make the calculator inspectable
A useful bot should log the inputs that produced every size: equity, configured risk percentage, stop distance, tick size, tick value, raw volume, normalized volume and estimated stop loss. This makes the calculation auditable when live execution differs from a backtest.