These control properties provide a True or False value of the most recent trade control function used.
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.
Property 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 |
Returns: |
---|
When property is True, orders are allowed to process. |
Links: |
---|
|
See Also: |
Edit Time: 9/12/2020 2:09:32 PM |
Topic ID#: 628 |