These control properties provide a True or False value of the most recent trade control function used.

 

Note:

These can be used throughout the system. They are set by the Trade Control Functions in the Portfolio Manager.  Once set for the instrument, these properties are available for access anywhere in the system.  When they show a trade is not allowed, they can be used as a condition that allows or ignores a order to create a new position unit.

 

Function Name:

Description:

canTradeLong

True if the instrument is allowed to trade long today.

canTradeShort

True if the instrument is allowed to trade short today.

 

Example:

'  Get Long Trade State
IF instrument.canTradeLong THEN
  '  Enable a Long Order to be created.
ENDIF

Returns:

When property is True, orders are allowed to process.

 

Links:

 

See Also:

Trade Control Functions

 


Edit Time: 9/25/2017 09:09:58 AM


Topic ID#: 628

 

Created with Help & Manual 7 and styled with Premium Pack Version 2.80 © by EC Software