Bars
Posted by Mohammad Rahhal, Last modified by Diana Alkouni on 02 September 2020 10:11 AM

Syntax

Public Function Bars(ByVal symbolId As String, ByVal period As ENUM_PERIOD) As Integer

Description

This function is used to return the number of candle for the specific symbol on period.

Parameters

Parameter  Description
symbolId Symbol ID to get it bars number, Value of type integer.
period  Period value can be one of ENUM_PERIOD.

Return value

Returns the number of bars for a specific symbol on the selected period.

Sample

 Public Sub main()

       Dim count as Integer
       count = ClientCode.Bars (“6”, VTLGeneral.ENUM_PERIOD.MINUTE)’ Bars count for EUR/USD
       GUI.MsgDialog(Count)

End Sub

 


See Also


Back to VTL Server Script 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