Note: PnL is only shown if the ticker of the chart is the same as what the indicator configured for. For example, if the indicator is tracking SQQQ, then PnL will only show if the chart is showing SQQQ data.
Because of the Pine Script v5 limitation, showing accurate PnL while using other ticker in chart is impossible for now.