Input

Position direction

Use one quote currency for all prices and monetary amounts. Display precision: amounts 2, percentages 4, prices/quantities 8 decimals; position quantities round down. ≈ marks shortened values. Tiny/large values use scientific notation; result text and exports retain up to 36 decimals.

Result

Run the tool to see the result.

How to use

The loss budget and available equity limit the position, including trading fees. Enter a quantity step to round the final size down to a whole multiple and recalculate margin and stop loss. The calculation assumes execution at the stop price and excludes slippage, liquidation and other exchange rules.