Knowledgebase : Technical Support > API > Client API's/VTL > VTL Server Scripts > VTL Server Events
SYNTAX Public Sub OnPositionTrade(ByRef actionType as VTLServerApplication.ENUM_TRADE_ACTION_TYPE, ByRef TicketID as Integer) DESCRIPTION This Event generates after returning position result. PARAMETERS Key Description  actionType value ...
SYNTAX Public Sub OnOrderTrade(ByRef actionType as VTLServerApplication. ENUM_TRADE_ACTION_TYPE) DESCRIPTION This event rises after taking a new order and receiving its result from the server. PARAMETERS Key Description  actionType order...
DESCRIPTION The OnTick event is generated whenever there is a new tick. There are 2 variants form of the events:   Public Sub OnTick(symbolName) Or Public Sub OnTick() You should use one form to consume OnTick Event. Sample  Public Sub main()   E...
SYNTAX Public Sub UpdateSLTPOrderResult(ByRef Result As VTLServerApplication.NewOrderResultEnum, ByRef OrderId As Integer, ByRef ServerTime As String) DESCRIPTION This Event generates after calling the UpdateSLTPOrder [http://www.hybrid-solutions.com/s...
SYNTAX Public Sub DeleteSLTPOrderResult(ByRef Result As VTLServerApplication.NewOrderResultEnum, ByRef OrderId As Integer, ByRef ServerTime As String) DESCRIPTION This Event generates after calling the DeleteSLTPOrder [http://www.hybrid-solutions.com/s...
SYNTAX Public Sub DeleteLimitOrderResult(ByRef Result As VTLServerApplication.NewOrderResultEnum, ByRef OrderId As Integer, ByRef ServerTime As String) DESCRIPTION This Event generates after calling the DeleteLimitOrder [http://www.hybrid-solutions.com...
SYNTAX Public Sub UpdateLimitOrderResult(ByRef Result As VTLServerApplication.NewOrderResultEnum, ByRef OrderId As Integer,ByRef ServerTime As String) DESCRIPTION This Event generates after calling the UpdateLimitOrder [http://www.hybrid-solutions.com/...
SYNTAX Public Sub NewSLTPOrderResult(ByRef Result As VTLServerApplication.NewOrderResultEnum, ByRef OrderId As Integer, ByRef ServerTime As String) DESCRIPTION This Event generates after calling the NewSLTPOrder [http://www.hybrid-solutions.com/support...
SYNTAX Public Sub NewLimitOrderResult(ByRef Result As VTLServerApplication.NewOrderResultEnum, ByRef OrderId As Integer, ByRef ServerTime As String) DESCRIPTION This Event generates after calling the NewLimitOrder [http://www.hybrid-solutions.com/suppo...
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 Symbo...
SYNTAX Public Sub NewOrderResult(ByRef 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 S...
Help Desk Software by Hybrid Solutions