strategy.closedtrades.entry_bar_index

Bar index of the entry fill of closed trade trade_num (0 = the oldest); na when there is no such trade.

strategy.closedtrades.entry_bar_index(trade_num: int) -> int

Parameters

Example

firstBar = strategy.closedtrades.entry_bar_index(0)