strategy.position_size
Contracts held now: positive long, negative short, 0 flat.
strategy.position_size() -> float
Example
flat = strategy.position_size == 0
Contracts held now: positive long, negative short, 0 flat.
strategy.position_size() -> float
flat = strategy.position_size == 0