strategy.openprofit

Open P&L of the position at this bar close, in dollars.

strategy.openprofit() -> float

Example

plot(strategy.openprofit, "Open P&L")