Indicators cannot read things like PnL. There is no such concept. The way StrategyPlot() works is not in a way accessible for indicators either. StrategyPlot() is a blank indicator that is just a place holder that allows you to set values to from a strategy. An indicator does not necessarily process after the strategy and as such the StrategyPlot() instance it sees is not what you set it to from the strategy.
If you want to work with things like PnL you have to do it all from the strategy context. There is just no such concept for indicators.

Comment