fnGetOrderInfo
- The fnGetOrderInfo function it used to get information about an open order.
- The fnGetOrderInfo function is found in the Functions Toolbox under the Trade menu.
- Selecting the configuration (+) button of fnGetOrderInfo function will display the fnGetOrderInfo Configuration Window.
- There are three tabs on the fnGetOrderInfo Configuration Window:
- The Configure Tab is used to set the values of the parameters of the Function.
- The Message Tab is used to send a message from the Function Element.
- The Notes Tab is used to add notes or comments to the Function Element.
The following table provides information about each parameter of the fnGetOrderInfo function.
InfoType |
The type of information requested (that matches the Order Selection criteria): INFO_LOTS:Get the lot size of an open order. INFO_MAGICNUMBER :Get the magic number of an open order. INFO_OPENPRICE :Get the lot size of an open order. INFO_OPENTIME :Get the open time of an open order. INFO_PROFIT :Get the profit of an open order (this value can be negative) INFO_STOPLOSS :Get the stoploss of an open order. INFO_TAKEPROFIT :Get the takeprofit of an open order. INFO_SWAP :Get the swap value of an open order. INFO_TICKET :Get the ticket of an open order. INFO_ORDERTYPE :Get the order type of an open order. INFO_TOTALORDERS :Get the total number of orders that match the selection criteria. |
Order Selection |
Determines what orders of the Account are queried.
Note: Selecting Exact Ticket disables all other selection criteria. |
The bottom portion of the window allows the Element Name to be saved.