Syntax
Public Function iBarShift (chartIndex As Integer, Time As String) As Integer
Description
This function is used to return the index of the bar by giving the bar time on the specificchart.
Parameters
Key | Description |
ChartIndex | The chart position on the chart windows.0 means a current chart, the value of type Integer |
Time | The cover bar time (dd/MM/yyyy hh:mm:ss), the value of type String. |
Return value
ReturnsIndex of the bar which covers the specified time. If there is no bar for the specified time the function will return -1.
Sample
Public Sub main() Dim Result Result= iBarShift (0,15:08:2015 00:00:00) AlertMessage Result End Sub
See Also