Core Calculations
The platform’s core calculations form the foundation for precise tracking of trading performance and account health. They include Realized PnL, Unrealized PnL, Equity, Margin, and Margin Level, all es
Realized PnL (Closed Positions):
For a Buy Position:
Formula:
When closing a buy position, profit is made if the close price is higher than the open price. The difference is multiplied by the position size and the contract size to determine total profit or loss.
For a Sell Position:
Formula:
When closing a sell position, profit is made if the close price is lower than the open price. The difference is multiplied by the position size and the contract size.
Unrealized PnL (Open Positions):
For a Buy Position:
Formula:
For open buy positions, unrealized profit is calculated as the difference between the current price and the open price. If the current price is higher, the position is in profit.
For a Sell Position:
Formula:
For open sell positions, unrealized profit is calculated as the difference between the open price and the current price. If the current price is lower, the position is in profit.
Equity
Formula:
Equity represents the total value of a trader’s account, combining the account balance and the unrealized profit or loss from open positions. It reflects the current value of your trading account in real time.
Margin
Formula:
The margin required to open a position is calculated based on the position size, the standardized contract size, and the leverage. Margin represents the amount of capital needed to maintain a trade.
Position Size: Number of lots traded.
Contract Size: Standardized value per lot (e.g., 100,000 for forex).
Leverage: Ratio of borrowed funds to trader’s capital.
Used Margin
The portion of your account funds locked to maintain open positions.
Used margin increases with the number of open positions and their size, directly impacting your available free margin.
Free Margin
Formula:
Free margin is the amount of funds available for opening new positions or absorbing losses. It provides flexibility and ensures account health.
Margin Level
Formula:
Margin Level is a critical metric that measures the health of your account. It is expressed as a percentage and helps assess how much margin is available relative to your open positions. A higher margin level indicates a safer buffer, while a lower margin level suggests higher risk of liquidation.
Additional Notes
When there is no direct exchange rate available for a currency pair, the platform ensures accurate calculations by using alternative methods:
Inverse Rate: If a direct rate (e.g., EUR/USD) is unavailable, the platform automatically calculates the exchange rate using the inverse of the related rate (e.g., USD/EUR = 1 / EUR/USD).
Cross Rate: If neither a direct nor inverse rate exists, the platform calculates a cross rate by combining two related currency pairs. For example, if EUR/JPY is unavailable, it can be derived by multiplying EUR/USD and USD/JPY:
These mechanisms ensure seamless trading across all currency pairs, maintaining precision and reliability even for uncommon combinations.
Last updated