Knowledgebase:
CopyClose
Posted by Mohammad Rahhal, Last modified by Rawan Al Hourani on 17 July 2017 12:49 PM

Syntax

Public Function CopyClose(chart_ID As Integer, startPos As Long, Count As Long, ByRef closeArray As Variant)As Integer

This function is used to return the history data that saved on CloseArray of bar close prices for the selected chart.

Parameters

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

Return value

Returns the copied data count, or -1 in case error occurred.

Sample

Public Sub main()

Dim closeArray 

AlertMessage CopyClose(0,1,Bars(0),closeArray) ' 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