Knowledgebase
Syntax
Public Function SlTpRelation (ByVal TransType As OperationTypeEnum, ByVal SlorTP As String) As String.
DESCRIPTION
This function is used to determine if Stop Loss / Take Profit price
will be greater than or less than the current price with offse...
Syntax
Public Function SlTpPrice (ByVal TransType As OperationTypeEnum, ByVal SymbolID As Integer, ByVal FromPrice As Double, ByVal SlorTP As String) As String.
DESCRIPTION
This function is used to get the Stop Loss or Take Profit price
according to tr...
SYNTAX
Public Function LimitRelation (ByVal TransType As OperationTypeEnum) As String.
PARAMETERS
This function is used to determine if the prices should be greater
than or less than the current price with offset by the given operation
type.
Param...
Syntax
Public Function LimitPrice (ByVal TransType As OperationTypeEnum, ByVal SymbolId As Integer) As Double.
DESCRIPTION
This function is used to get the limit price according to operation
type and trading symbol.
PARAMETERS
Parameter
Descr...
Syntax
Public Function OrderGetID (ByVal index As Integer) As Long.
DESCRIPTION
This function is used to return the order number by the given index in
the trade list.
PARAMETERS
Parameter
Description
Index
Order index in trade list. ...
Syntax
Public Function OrderGetString(ByVal property_id As ENUM_ORDER_PROPERTY_STRING) As String.
DESCRIPTION
This function is used to return value of type String that is
corresponding at the order property for the selected order through
SelectOrder...
Syntax
Public Function OrderGetInteger(ByVal property_id As ENUM_ORDER_PROPERTY_INTEGER) As Long.
DESCRIPTION
This function is used to return value of type Integer that is
corresponding at the order property for the selected order through
SelectOrderBy...
Syntax
Public Function OrderGetDouble(ByVal property_id As ENUM_ORDER_PROPERTY_DOUBLE) As Double.
DESCRIPTION
This function is used to return value of type double that is
corresponding at order property for the selected order through
SelectOrderByIn...
SYNTAX
Public Function OrderPrice () As String.
DESCRIPTION
This function is used to return the order price for the selected
order through SelectOrderByIndex
[http://www.hybridsolutions.com/support/index.php?/Knowledgebase/Article/View/5222] or
SelectO...
SYNTAX
Public Function OrderTime () As String.
DESCRIPTION
This function is used to return the order time for the selected order
through SelectOrderByIndex
[http://www.hybridsolutions.com/support/index.php?/Knowledgebase/Article/View/5222] or
SelectOrd...
Syntax
Public Function OrderLots (ByVal orderID As Long) As Double.
DESCRIPTION
This function is used to get the order amount for the given order
ID.
PARAMETERS
Parameter
Description
OrderID
The order number to get its amount. Value of ...
Syntax
Public Function OrderSymbol () As String.
DESCRIPTION
This function is used to return the order symbol name for the selected
Order through SelectOrderByIndex
[http://www.hybridsolutions.com/support/index.php?/Knowledgebase/Article/View/5222] or
...
Syntax
Public Function OrderType () As VertexGeneral10.OperationTypeEnum.
DESCRIPTION
This function is used to return the type for selected order through
SelectOrderByIndex
[http://www.hybridsolutions.com/support/index.php?/Knowledgebase/Article/View/5...
Syntax
CloseByHedge (Ticket1 As long, Ticket2 As Long, Lots As Double)
DESCRIPTION
This function is used to close two tickets by hedge after
the CloseByHedge method executes with acceptance
the CloseOrderResult
[http://www.hybridsolutions.com/support/i...
SYNTAX
Public Function CloseMulitPositions (ByVal tickets As String, ByVal lots As String) As CallingResultsEnum.
PARAMETERS
This function is used to close multiple open positions after
CloseMulitPositions method executes with acceptance the
CloseOrder...
Syntax
Public Function SelectOrderByIndex(ByVal Index As Integer) As Boolean.
DESCRIPTION
This function is used to choose the order by the given index in
the trade list.
PARAMETERS
Parameter
Description
Index
Order index in the trade li...
SYNTAX
Public Function SelectOrderByID (ByVal OrderID As Integer) As Boolean.
PARAMETERS
This function is used to choose the order by the given ID number to
get order information.
Parameter
Description
OrderID
Order index in the trade l...
SYNTAX
Public Function PositionGetSymbol (ByVal index As Integer) As String.
DESCRIPTION
This function is used to return symbol name for the given open
position Index in the trade list.
PARAMETERS
Parameter
Description
index
Open positi...
SYNTAX
Public Function PositionGetTime(ByVal property_id As ENUM_POSITION_PROPERTY_TIME) As Date.
DESCRIPTION
This function overloads 2 variants as the following
SYNTAX
Public Function PositionGetTime(ByVal property_id As ENUM_POSITION_PROPERTY_TIME...
SYNTAX
Public Function PositionGetBool(ByVal property_id As ENUM_POSITION_PROPERTY_BOOL) As Boolean.
DESCRIPTION
This function overloads 2 variants as the following
SYNTAX
Public Function PositionGetBool(ByVal property_id As ENUM_POSITION_PROPERTY_B...
SYNTAX
Public Function PositionGetString (ByVal property_id As ENUM_POSITION_PROPERTY_STRING) As String.
DESCRIPTION
This function overloads 2 variants like the following
SYNTAX
Public Function PositionGetString (ByVal property_id As ENUM_POSITION_P...
SYNTAX
Public Function PostionGetInteger (ByVal property_id As ENUM_POSITION_PROPERTY_INTEGER ) As Long.
DESCRIPTION
This function overloads 2 variants as the following
SYNTAX
Public Function PositionGetInteger (ByVal property_id As ENUM_POSITION_PR...
SYNTAX
Public Function PositionGetDouble (ByVal property_id As ENUM_POSITION_PROPERTY_DOUBLE) As Double.
DESCRIPTION
This function overloads 2 variants like the following
SYNTAX
Public Function PositionGetDouble (ByVal property_id As ENUM_POSITION_P...
SYNTAX
Public Function PositionSelectByIndex (ByVal Index As Integer) As Boolean.
DESCRIPTION
This function is used to choose an open position for the given
position index at trade list.
PARAMETERS
Parameter
Description
index
Open posi...
SYNTAX
Public Function OpenPositionByTicket (ByVal Ticket As Integer) As CPosition
DESCRIPTION
This function is used to return the symbol Position object by the
given ticket number.
PARAMETERS
Parameter
Description
Ticket
Position tick...
SYNTAX
Public Function OrderGetID(Index As Integer) As Long
DESCRIPTION
This function is used to return order number based on its index in the
orders list.
PARAMETERS
Key
Description
Index
Order index in the orders list , value of type...
SYNTAX
Public Function CloseMultiPositions(PositionIDs As string, Lots As String) As Boolean
DESCRIPTION
This function is used to close multiple market orders at once.To get a
result from the server, you have to consume OnOrderTrade
[http://www.hybrids...
SYNTAX
Public Function OrdersTotal() As Integer
DESCRIPTION
This function used to return the orders count for the selected
account.
RETURN VALUE
Returns order count as value of type Integer
SAMPLE
Public Sub main()
Dim Count as integer
...
SYNTAX
Public Function OrderByID(ByVal ID As Integer) As Order
DESCRIPTION
This function used to returns the order object for a specific order
number
PARAMETERS
Parameter
Description
ID
The ID of Order, to get the order
[http://www.hyb...
SYNTAX
Public Function OrderByIndex(ByVal Index As Integer) As Order
DESCRIPTION
This function used to returns an order object for a specific order
index at the trading list on the client terminal.
PARAMETERS
Parameter
Description
Index
...
SYNTAX
Public Function RequestManageOrders(ticket As Long) As Boolean
DESCRIPTION
This function is used to request all managed orders that related to
specific position from the server. To get result from the server, you
have to consume OnManageOrdersRe...
SYNTAX
Public Function UpdateSLTPOrder(ByVal OrderId As Integer, ByVal Lots As Double, Optional ByVal SL As Object = "", Optional ByVal TP As Object = "") As CallingResultsEnum
DESCRIPTION
This function used to update the existing manage order at speci...
SYNTAX
Public Function PositionsTotal() As Integer
DESCRIPTION
This function used to get the open positions count of the selected
account.
PARAMETERS
No Parameters.
RETURN VALUE
Returns the open positions count as the value of type Integer.
SAMPLE...
SYNTAX
Public Function DeleteLimitOrder(ByVal OrderId As Integer) As CallingResultsEnum
DESCRIPTION
This function used to Delete the existing pending order, After
DeleteSLTPOrder method executes the DeleteLimitOrderResult
[http://www.hybridsolutions.co...
SYNTAX
Public Function DeleteSLTPOrder(ByVal OrderId As Integer) As CallingResultsEnum
DESCRIPTION
This function used to Delete the existing manage order at a specific
open position After DeleteSLTPOrder method executes the
DeleteSLTPOrderResult
event...
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
T...
SYNTAX
Public Function NewSLTPOrder(ByVal Ticket As Integer, ByVal Lots As Double, Optional ByVal SL As Object = "", Optional ByVal TP As Object = "") As CallingResultsEnum
DESCRIPTION
This function used to create manages order at an open position. Aft...
SYNTAX
Public Function NewLimitOrder(ByVal OrderType As OperationTypeEnum, ByVal SymbolId As Integer, ByVal Lots As Double, ByVal AtPrice As Double, Optional ByVal SL As Object = "", Optional ByVal TP As Object = "",Optional ByVal Note As String = "") As...
SYNTAX
Public Function RejectOrder(ByVal OrderId As Integer) As Integer
DESCRIPTION
This function use to reject a re-quoted order by given the order
number.
PARAMETERS
Parameter
Description
OrderId
Requoted order number to be rejecte...
SYNTAX
Public Function AcceptOrder(ByVal OrderId As Integer) As CallingResultsEnum
DESCRIPTION
This function used to accept a re-quoted order by given the order ID
PARAMETERS
Parameter
Description
OrderId
OrderID to be accepted , valu...
SYNTAX
Public Function CloseMarketOrder(ByVal Ticket As Integer, ByVal Lots As Double) As CallingResultsEnum
DESCRIPTION
This function used to close an open position by given the ticket
number, After CloseMarkerOrder method executes with acceptance th...
SYNTAX
Public Function NewMarketOrder(ByVal BuySell As OpertationTypeEnum, ByVal SymbolID As Integer, ByVal Lots As String , Optional ByVal Note As string = "") As CallingResultsEnum
DESCRIPTION
This function used to create new market order (Trade on ...
Help Desk Software by Hybrid Solutions