Posted by Rula Halaseh, Last modified by Diana Alkouni on 02 September 2020 02:46 PM


Public Function GetChartHistory(ByVal symbolId As String, ByVal period As ENUM_PERIOD, ByVal value As ENUM_HISTORY_TYPE,ByVal FromDate As String,ByVal toDate As String) As Object()


This function is used to return the open , close , high and low prices for the chart at specific period.


Parameter  Description
symbolId The Symbol name that wants to get it history, the value of type String.
period Chart period, the value of type ENUM_PERIOD
value The history price that want to return, value of type ENUM_HISTORY_TYPE.
fromDate The begin history date, the value of type String.
toDate The end history date, the value of type String.

Return value

Return array as the value of type Object that corresponding to History type.


  Public Sub main()

     Dim Result () As Object

     Result = ClientCode.GetChartHistory (“EUR/USD”, VTLGeneral.ENUM_PERIOD.MINUTE, VTLGeneral. ENUM_HISTORY_TYPE.HIS_HIGH,”5/5/2016 00:00:00”,”6/6/2016 00:00:00”)
     GUI.MsgDialog (“the high price value for record 5” & Result (5))

  End Sub

See Also

Back to VTL Server Script Index

(0 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