Skip to content
All library documents

Closing Positions in VeighNa’s Script Trader

Article vn.py community

Summary

This brief forum exchange discusses how to close positions using VeighNa’s script trading interface. A user notes that the documentation shows an opening order example and asks for examples of closing a position and closing a position opened on the same day. A reply suggests changing a buy order to a sell order to close, while noting that the interface may not support choosing between closing today’s and earlier positions.

The exchange offers only a limited pointer, not a complete implementation guide. It does not show a closing order example, explain how position offsets vary by exchange, or confirm the precise behavior across gateways. A follow-up links to another discussion about CTP close-today and close-yesterday handling, but gives no details from that thread. Traders should therefore treat the reply as an initial direction and check the relevant interface and exchange-specific offset rules before relying on it.

Key ideas

  • A sell order may be used to close a long position in the script trading interface.
  • The exchange does not establish whether changing the order side alone is sufficient for every gateway or exchange.
  • The post raises a distinction between closing same-day positions and closing positions carried from earlier sessions.
  • It points readers toward a separate discussion for more detail on CTP close-today and close-yesterday handling.

Tags

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