strategy.opentrades.entry_time
Entry time (UTC ms) of open trade trade_num (0: the account holds one position per symbol); na when there is none.
strategy.opentrades.entry_time(trade_num: int) -> int
Parameters
trade_numint: Which open trade: only 0 exists (the account holds one position per symbol); another number gives na.
Example
since = time - strategy.opentrades.entry_time(0)