Syntax
Public Function GetChartPeriod(chartIndex As Integer) As Integer
Description
This function is used to get the active period for the given chart index.
Parameters
Key | Description |
chartIndex | The chart position on the chart windows.0 means acurrent chart, the value of type Integer |
Return value
Returns the chart period as value of type integer.else when getting -1 , callGetLastErrorfunction.
Sample
Public Sub main() Dim SymbolName SymbolName = GetChartPeriod(2) AlertMessage SymbolName End Sub
See Also