strategy.closedtrades.entry_price

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

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

Parameters

Example

lastEntry = strategy.closedtrades.entry_price(strategy.closedtrades - 1)