strategy.closedtrades.exit_price

Exit price (average of the closing fills) of closed trade trade_num (0 = the oldest); na when there is no such trade.

strategy.closedtrades.exit_price(trade_num: int) -> float

Parameters

Example

lastExit = strategy.closedtrades.exit_price(strategy.closedtrades - 1)