Skip to content
All library documents

How Account Positions Differ from Strategy Net Position

Article vn.py community

Summary

A trader asks why positions disappeared from a trading interface after restarting a CTA strategy, despite earlier opening both long and short positions. The discussion distinguishes the strategy’s locally stored logical position from the account’s actual positions. In the explanation, the strategy’s position variable represents net exposure, so equal long and short holdings can produce a value of zero even while both sides remain open at the account level.

The response says actual account positions are normally queried through the trading interface from the exchange or broker, while the local strategy state stores its own logical position. It recommends querying the main engine’s complete position list to inspect contracts, directions, and volumes. One reply suggests waiting for contract query information to arrive, though the thread does not establish that this resolves the original display issue. The exchange-specific behavior, persistence details, and restart synchronization process are not independently verified, so the post is best treated as framework-oriented troubleshooting guidance rather than a universal account model.

Key ideas

  • A strategy’s logical position can represent net exposure rather than separate long and short holdings.
  • Equal long and short positions can net to zero in the strategy’s position variable.
  • The thread says actual account positions are retrieved through the trading interface.
  • A complete position query can show each contract’s direction and volume.
  • The discussion does not fully diagnose why the restarted interface omitted the positions.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.