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 |
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