Trading Metrics Guide
This article explains common metrics on the Rails platform, including their precise calculations.
Definitions
Index Price: The fair market value of the asset pulled from our Index Price sources.
Entry Price: The price at which your order was filled to open a position. This is based on actual execution price and may differ from the index and order book price at the moment you placed the order due to factors like slippage or partial fills.
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 price at which your order was filled to close a position. This reflects the actual execution price and may differ from the index and order book price you saw when closing your position due to factors like slippage or partial fills.
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 vary 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.
Position Value Calculations
Position Value is the total market value of your open position, calculated using the current index price (a live market reference) and your position size (the number of units you’re trading). It indicates how much your position is worth right now.
The calculation for position value is:
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.
The Margin Rate is the proportion of the total balance of all open positions that must be held from your available balance as collateral when opening a position. It’s the reciprocal of account leverage.
The Safety Margin is the percentage of your total position value you must keep as margin to avoid liquidation. It's a standard 3% buffer which is added to account for market volatility and slippage.
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?