View Full Version : Managed Orders

11-29-2013, 03:09 AM
In managed order there is no Open Price parameter to calculate Break Even or Update SL or TP based on market condition - This property is available in open positions. So position's ticket number related to managed order is required to find out open price of concern managed order.

11-29-2013, 05:57 AM
How to identify to which open position is a managed order belong to?

You have to use RequsteManageOrders method which is request all managed orders related to specific ticket from the server, To get notification from the server, you have to consume OnManageOrdersReceived event.


If AccountInfoInteger(ACCOUNT_LOGIN) Then

If RequestManageOrders (3666) Then

MsgBox "The Request has been sent to the server to get all manage orders related to ticket number 3666 "


MsgBox ErrorDescription(GetLastError())

End If

End If

End Sub

'This event raised when calling RequestManageOrders method successfully

Public Sub OnManageOrdersReceived(manageOrders)

Dim i

' Receiving Manage Order related to Ticket 3666

For i = 1 To manageOrders.Count()

MsgBox CSTR(manageOrders. Orders(i))


End Sub

01-09-2014, 10:05 AM
Dear Sir

Please update us if every thing is clear now or not, and let me know if you need any further assistance.