Syntax
Public Overrides Function NewLimitOrder(ByVal OrderType As LimitOrderType, ByVal SymbolID As long, ByVal Lots As Double, ByVal AtPrice As Double, Optional ByVal SL As Object = "", Optional ByVal TP As Object = "")As TransResult
This function is used to create new limit/stop order.
Parameters
Key | Description |
OrderType | Value of type LimitOrderType |
SymbolID | Value of typelong |
Lots | Value of type double |
AtPrice | Value of type double |
SL | Optional. Object |
TP | Optional. Object |
Sample
Public Sub BOChatOrderReceived (ByVal BOOrder As VertexFXBridgeAPI.Order) Dim Result As VertexFXBridgeAPI.TransResult Result=BO.GetBO.NewLimitOrder (1,GOLD, 10, 2100 , ,) End Sub
See Also