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


Public Function CopyOpen(chartID As Integer, startPos As Long, Count As Long, ByRef openArray As Variant)As Integer


This function is used to return history data of the open bars for the specified chart that saved on an open array


Key Description 
chartID Chart location at chart window, 0 mean current chart, the value of type Integer
startPos The start position to copy, the value of type Long.
Count Data count to be copied, the value of type Long.
openArray Array for saving the results data in, the value of type Variant.

Return value

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


Public Sub main()

Dim openArray 

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

End Sub

See Also

Back to VTL Client Script Index

(1 vote(s))
Not helpful

Comments (0)
Post a new comment
Full Name:
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