strategy.opentrades.profit

Open profit in dollars at this bar close of open trade trade_num (0: the account holds one position per symbol); na when there is none.

strategy.opentrades.profit(trade_num: int) -> float

Parameters

Example

openPnl = strategy.opentrades.profit(0)