Creates and adds the specified order to the list.
Namespace:
T4.APIAssembly:
T4API.20 (in T4API.20.dll)
Syntax
| Visual Basic (Declaration) |
|---|
Public Function Add ( _
penBuySell As BuySell, _
penPriceType As PriceType, _
penTimeType As TimeType, _
piVolume As Integer, _
pdblLimitPrice As Double _
) As Order |
Parameters
- penBuySell
- Type: T4..::.BuySell
Whether to submit a buy or sell order.
- penPriceType
- Type: T4..::.PriceType
The order type, i.e. limit or stop
- penTimeType
- Type: T4..::.TimeType
The working time for the order, i.e. normal or IC
- piVolume
- Type: System..::.Int32
The number of lots for the order
- pdblLimitPrice
- Type: System..::.Double
The limit price for the order. If you are submitting a Market order then this should be 0.
Return Value
Order - the order created.
Remarks
See Also