Knowledgebase:
LimitOffset
Posted by Mohammad Rahhal, Last modified by Angham Al-Banawien on 22 June 2018 02:36 PM

Syntax

 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.

Parameters

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.

Sample

 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” & VSymbol.name)

 End Sub 


See Also


VertexFX Client API Index

(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