strategy.position_entry_name

Id of the oldest entry still held; "" when flat.

strategy.position_entry_name() -> string

Example

isBreakout = strategy.position_entry_name == "Up"