strategy.opentrades.entry_id
Id of the entry that opened open trade trade_num (0 only); "" when there is none.
strategy.opentrades.entry_id(trade_num: int) -> string
Parameters
trade_numint: Which open trade: only 0 exists (the account holds one position per symbol); another number gives na.
Example
entryId = strategy.opentrades.entry_id(0)