CloseOrderResult
Posted by Mohammad Rahhal, Last modified by Anas Mousa on 28 June 2018 01:31 PM

Syntax

Public Sub CloseOrderResult(Result As VTLServerApplication.NewOrderResultEnum, ByRef AtPrice As Double, ByRef PosOrOrder As Short, ByRef OrderId As Integer, ByRef BuySell As VTLServerApplication.OperationTypeEnum, ByRef Lots As Double, ByRef Symbol As VTLServerApplication.CSymbol, ByRef ServerTime As String, ByRef OpenTicket As Integer)

This event generates after calling the CloseMarketOrder and receive its result.

Parameters

Key Description 
Result The response from the server,value of type NewOrderResultEnum.
AtPrice Price that order close on it ,value of type double.
PosOrOrder If 1 it means the position was closed automatically,2 means the order transferred to BackOffice side as market order, value of type Short.
OrderID The order number If PosOrOrder = 2 ,value of type Integer.
BuySell Operation type,value of type OperationTypeEnum.
Lots Amount of lot , value of type Double.
Symbol Trading symbol object ,value of type CSymbol.
ServerTime The server time at closing moment , value of type String .
OpenTicket Ticket number of closed open position , value of type Integer.


Remark
Use this event know the result for the close order.


See Also


Back to VTL Server Script Index

The same string that was sent through CloseMarketOrder method.
The same string that was sent through CloseMarketOrder method.
(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Help Desk Software by Hybrid Solutions