How is position profit and loss in Paper Trading calculated
In most cases, buy orders are executed at the ask price, and sell orders at the bid price. The last price on the chart does not affect the calculation. They are displayed in the order panel and on the "Buy" and "Sell" buttons in the top left corner.

You can also enable their labels on the price scale.

To close a long position, you need to place a sell order, so the profit and loss will be calculated as the difference between the bid price and entry price, multiplied by the quantity.
The formula for long positions:
(Bid Price − Average Fill Price) × QuantityThe formula for short positions:
(Average Fill Price − Ask Price) × Quantity

! Note: Your profit and loss is calculated in the symbol's currency and then converted to USD, as the dollar is the default currency for Paper Trading.For futures, the formulas are slightly different. They account for the point value of the contract, which you can find in the symbol info by clicking on the three dots in its description.

The formula for long futures positions:
(Bid Price − Average Fill Price) × Quantity × Point ValueThe formula for short futures positions:
(Average Fill Price − Ask price) × QuantityExample of profit and loss calculation for a short futures position:
(4520.25 − 4520.50) × 10 × 50 = −125 USD
Also read:
- How to trade on TradingView
- The technical analysis essentials
- Introduction to fundamental analysis
- Simulated futures, real market experience
- Chart trading: key features and advantages