The PositionSettings type exposes the following members.

Properties

  NameDescription
Public propertyBarCountExit
Number of bars after which the position will automatically be closed.
Public propertyBarsValid
The number of bars before the order should be canceled if it is not filled.
Public propertyCustomString
A string that can be used to store additional user-defined data related to the position.
Public propertyDescription
Gets or sets a description for the position order.
Public propertyLimitPrice
Limit price of the order to open the position (if applicable).
Public propertyOpenOrder
The order which will be submitted to the broker to open the position.
Public propertyOrderType
Order type of the order to open the position (market, limit, stop, etc.)
Public propertyPositionType
Position type (long or short).
Public propertyProfitTarget
The profit target for the position.
Public propertyProfitTargetType
The type of profit target for the position. The default is RelativeRatio.
Public propertySize
The number of shares or contracts to establish this position with. If this is zero, the position will be sized based on the settings in AllocationType and Allocation.
Public propertyStopLoss
The stop loss for the position.
Public propertyStopLossType
The type of stop loss for the position. The default is RelativeRatio.
Public propertyStopPrice
Stop price of the order to open the position (if applicable).
Public propertySymbol
The Symbol associated with this position.
Public propertyTag
An object that can be used to store additional user-defined data related to the position.
Public propertyTrailingStop
Gets or sets the trailing stop value for this position.
Public propertyTrailingStopType
Indicates whether the trailing stop is specified as a percentage or a fixed price offset for a trailing stop order.

See Also