iBarShift
Posted by Angham Al-Banawien, Last modified by Fouad Faraj Allah on 04 July 2019 06:20 PM

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 specific chart.

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

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


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