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
trade_numint: Which closed trade: 0 is the oldest, strategy.closedtrades - 1 the newest; another number gives na.
Example
lastEntry = strategy.closedtrades.entry_price(strategy.closedtrades - 1)