ActivationRules Class

A class used to create an activation rule from an associated activation rule collection object (used by OrderTicket objects). The functionality is similar to checking the Activation Rule checkbox in the Advanced section of the Order Bar in the TradeStation Platform. Click the Advanced button in the Order Bar to expose the Activation Rule checkbox. See Placing Orders using Activation Rules in TradeStation Platform Help.

Coding of the ActivationRules class occurs automatically in the Designer-Generated code when properties in an OrderTicket component specify the use of activation rules. Up to four rules are placed in the ActiviationRuleCollection class.

Namespace: tsdata.trading

Properties

   Additional properties, methods, and events are described in the classes listed under Inheritance Hierarchy (see below).

  Name Type Description
Public property ActivationTime datetime Sets or gets the date and time (local time) to activate the rule(s).
Public property DeactivationTime datetime Sets or get the date and time (local time) to deactivate the rule(s). This field applies to futures only.
Public property Rules object Sets or gets the activation rule(s). See ActivationRuleCollection class.
Public property UseActivationTime bool True to use the activation time value to activate the rule(s).
Public property UseDeactivationTime bool True to use the deactivation time value to deactivate the rule(s).
Methods
  Name Description
Public property Create Initializes a new instance of the class.