CopyTime
Posted by Mohammad Rahhal, Last modified by Diana Alkouni on 07 September 2020 12:56 PM

Syntax

Public Function CopyTime(chartID As Long, startPos As Long, Count As Long, ByRef timeArray As Variant)As Integer

Description

This function is used to return the history data of the time bars for a specific chart and put the result on a timeArray variable.

Parameters

Key Description 
chartIndex Chart identifier, 0 is the current chart, the value of type Long
startPos The start position to copy, the value of type Long.
Count The end position to copy, the value of type Long.
timeArray The copied data, the value of type Variant.

Return value

Returns the copied data count. If -1 is returned there is an error.

Sample

Public Sub main()

Dim timeArray 

AlertMessage CopyTime(0,1,Bars(0),timeArray) ' Returns -1 if there was an error. 

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