Syntax
Public Overrides Function NewSLTPOrder(ByVal LPOrderID As String, ByVal BuySell As OperationType, ByVal Amount As Double, ByVal LPSymbolName As String, ByVal LPAccountID As String, ByVal BOOrderID As String, ByVal BOAccountID As String, Optional ByVal SL As Double = 0, Optional ByVal TP As Double = 0) As TransResult
Description
This function used to create manage order at existing position at LP side and return the object of type TransResult if return success result the bridge will expect calling MyBase.OrderState.SLTPOrderAccepted, otherwise the bridge expects to call MyBase.OrderState.SLTPOrderRejected.
Parameters
Key | Description |
LPOrderID | The LP ticket number to create manages order on it, value of type String |
BuySell | Order operation type, value of type OperationType |
Amount | Order Amount inlots, value of type Double |
LPSymbolName | Order symbol name, value of type String |
BOOrderID | Order number at BackOffice side, value of type String |
BOAccountID | BackOffice account number, value of type String |
SL | Stop loss value, optional value of type Double |
TP | Take profit value, optional value of type Double |
Remark
Above parameters should be returned when you receive the server response for the order in calling MyBase.OrderState.SLTPOrderAcceptedor MyBase.OrderState.SLTPOrderRejected.
For more information check SLTP Order Cycle.
See Also