Syntax
Public Function Bars(chart_ID As Long)As Long
Description
This function used to return the number of bars in a 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