Posted by Mohammad Rahhal, Last modified by Diana Alkouni on 25 August 2020 10:24 AM


 Public Function LimitOffset(ByRef SymID As Integer) As Double


This function is used to return the value of how much the limit order prices should be away from the current market price for a specific symbol.


Parameter Description 
SymID Trading symbol ID to get the limit offset for it, value of type integer

Return value

Returns the limit offset value as type Double.


 Private Sub Offset_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles offset.Click

          ‘API is a predefined variable as CVertexFXClientAPI

          Dim vSymbol As COSymbol

          Dim offset As double

          VSymbol = API.SymbolByIndex(1)

          offset = API.LimitOffset(vSymbol.ID)

          MsgBox (“The limit offset value is” & offset & “For” &

 End Sub 

See Also

VertexFX Client API Index

(0 vote(s))
Not helpful

Comments (0)
Post a new comment
Full Name:
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