Hi @111376366292129558673, we investigated the reported difference between the P&L displayed on the chart and the P&L shown in the Positions window.
The screenshot was captured at approximately 8:30 AM, before market hours, and the difference is expected because both sections use different reference prices for their calculations.
Position P&L
The P&L displayed in the Positions window is calculated using the adjusted closing price of the contract, which is used as the reference price before the market opens.
In the shared example:
- Average Buy Price: ₹117.35
- Adjusted Close Price: ₹158.40
- Quantity: 130
Calculation:
(158.40 - 117.35) × 130 = ₹5,336.50
This matches the unrealized P&L shown in the Positions section.
Chart P&L
The P&L displayed on the 1-minute chart is calculated based on the last traded price of the 3:30 PM candle from the previous trading session.
In the shared screenshot, the referenced candle price is approximately ₹185.40.
Calculation:
(185.40 - 117.35) × 130 = ₹8,846.50
This corresponds to the P&L value displayed on the chart.
Reason for the Difference
The discrepancy occurs because:
- The Positions window shows unrealized P&L using the adjusted closing price available before market open.
- The Chart P&L is calculated using the 3:30 PM candle close price displayed on the chart.
Since the adjusted closing price and the previous session’s 3:30 PM candle price are different, the resulting P&L values will also differ.
Such differences are expected on intraday timeframes, since the Chart P&L is based on the price of a specific intraday candle, whereas the Positions window calculates P&L using the adjusted daily closing/reference price.
To verify this, you may switch the chart to the 1-Day (1D) timeframe. The P&L displayed on the chart will then align with the daily closing reference price used by the Positions window, and both values should match.
Please let me know if you need any additional clarification.