Syntax
Public Function UpdateLimitOrder(ByVal OrderId As Integer, ByVal Lots As Double, ByVal NewPrice As Double, Optional ByVal SL As Object = "", Optional ByVal TP As Object = "",Optional ByVal Note As String = "") As CallingResultsEnum
Description
This function used to update the pending order with new priceAfter UpdateLimitOrder method executes the UpdateLimitOrderResultevent fires.
To get
Parameters
Parameter | Description |
OrderID | Order number to be updated, value of type Integer. |
Lots | Amount of |
NewPrice | the updated price, |
TP | Take profit, optional value of type Double. |
SL | Stop loss, optional value of type Double. |
Note | To add |
Return value
Returns value of typeCallingResultsEnum.If the request sent to
Sample
Public Sub Main () Dim Result as VTLGeneral.callingResultsEnum Dim Order_ as VTLGeneral.Order Order_= ClientCode.OrderByIndex(1) If not Order_ is nothing then Result = ClientCode.UpdateLimitOrder (Order_.OrderID, Order_.lots, Order_.limitprice,"","","") GUI.MsgDialog(Result) End if End Sub
See Also