Syntax
Public Overrides Function UpdateSLTPOrder(OrderID As String, Amount As Double, Optional SL As Object ="", Optional TP As Object ="",Optional ByVal AccountID As String = "") As VertexFXBridgeAPI.TransResult
This function should update SLTP orders with the LP, this will return an object of typeTransResultthat represnts a fail or success result.
Parameters
| Key | Description |
| OrderID | Order IDof typestring |
| Amount | Amount to be traded |
| SL | Stop Loss |
| TP | Take Profit |
| AccountID | Optional value for account ID |
Sample
Public sub main () Dim Result As VertexFXBridgeAPI.TransResult Result=LP.GetLP ("Description").UpdateSLTPOrder ("553210", 1, 1.6, 1.9,"") End Sub
See Also