Trading Metrics Guide
This article explains common metrics on the Rails platform, including their precise calculations.
Definitions
Entry Price: The index price at time of position open.
Average Price: The weighted average entry price of all trades that make up the (open) position, including any additional buys or sells made over time.
Exit Price: The index price at time of position close (only for realized P&L).
Profit & Loss: How much in USD gained (profit) or lost (loss) compared to the entry price and position size.
Quantity: The position size in units of the asset (e.g. 0.01 BTC).
Trading Fees: Total entry and exit fees in USD.
Funding Payments: (positive or negative)
Realized P&L: The P&L realized so far. For an open order this contains the P&L from partially closing a position.
Calculations
Profit & Loss Calculations
The realized and unrealized P&L calculations varies for long and short trades. Unrealized P&L represents the profit or loss if the position were closed at the current moment. When a position is closed, the realized P&L is calculated and added to the P&L in the Account Summary. The Unrealized P&L value in the account summary is the total of all positions' unrealized P&L.
Balance Calculations
This Available Balance is the amount you have available to place new trades. It remains static unless you open or close positions, realize profits or losses, or deposit or withdraw funds.
The Account Balance is the current, total balance of your account including both available balance and balance in trades. This consistently changes if you have open positions, as the index price of the assets you’ve traded against fluctuates.
Margin Calculations
Margin is calculated as the combined value of all open positions and active open orders, divided by the selected leverage (1x to 5x). This amount, which is held as collateral from your available balance, ensures you have enough funds to support both existing and potential future trades.
Maintenance Margin is the minimum amount of collateral required to keep your open positions active and avoid liquidation, calculated as a percentage (the safety margin, see below) of the total balance of all open positions.
Leverage & Liquidation Calculations
Effective Leverage is the actual leverage applied to an open position. It may differ from the leverage you initially selected due to changes in your available balance caused by index price movements, fees, or margin adjustments between order placement and trade execution.
Account Leverage reflects the total size of your open positions relative to your available margin, showing how much risk you are taking across all trades combined. It aggregates the effective leverage from all open positions into a single number, showing your total risk exposure.
The Liquidation Price is the index price at which a position will be liquidated. It is the maximum absolute index price permitted to maintain a non-negative account balance, and is calculated slightly differently for Long and Short positions as shown below.
Last updated
Was this helpful?