Knowledgebase:
Bars
Posted by Mohammad Rahhal, Last modified by Rawan Al Hourani on 14 June 2016 02:22 PM

Syntax

Public Function Bars(chart_ID As Long)As Long

This function used to return the number of bars in specified chart.

Parameters

Key Description 
chart_Index Chart identifier, 0 is the current chart ,value of type Long

Return value

Returns the number of bars. If -1 is returned then the chart ID is invalid.

Sample

Public Sub main()

AlertMessage Bars(0) ' Returns the total number of candles in the current chart.

End Sub


See Also


Back to VTL Client 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