Skip to main content

Trading calculator

Margin call and stop-out calculator

Positions

One instrument. Each row is a buy or a sell with lots and an entry. At most 24 rows.

Sample values

Side 1

Floating P&L 0.00. Margin 1,100.00

Side, lots, and entry. One position on each line. Replace rows overwrites the list.

Account

Equity is this balance plus floating profit and loss. Margin uses the leverage.

:1
Levels

How hedged margin is counted. A broker setting. Not a broker rule.

Hedged margin

  • Both sides charged. Every buy lot and every sell lot is charged.
  • Larger side only. Only the bigger of the buy lots and the sell lots is charged.
  • Net lots only. Only the lots that are not offset are charged.

You enter both levels. The sample values are not a broker's.

%
%
Contract

The same contract and conversion apply to every row. The conversion stays constant as price moves.

1 when the quote currency is the account currency.

Find the first price where margin level equals the percents you enter. One instrument. This does not close the positions.

  • Buy and sell rows
  • Hedge policy you choose
  • Margin call and stop-out prices

Each row’s profit is its signed size times the distance from its entry to the price, times the contract, times the conversion. A buy gains when price is above its entry. A sell gains when price is below its entry. Equity is the balance plus that profit.

Margin is the charged lots times the contract times the price times the conversion, divided by the leverage. Both sides charged counts every lot. Larger side only charges the bigger of the buy lots and the sell lots. Net lots only charges the lots that are not offset. The price is where equity divided by margin, times 100, equals the percent you entered.

This is the first price where the level equals the percent. It does not model a close-out order. The calculation stays in this browser.