Results 1 to 3 of 3
  1. #1
    blaidd drwg

    Default GetTime at last closed bar

    how to get GetTime from last closed bar ?
    And how to get GetTime from bars(0)-n ?
    What is the relatin between Record parameter and Time ?

  2. #2
    Administrator Hassan-HS's Avatar
    Join Date
    Jun 2013



    You can use this method


    Public Sub main()
      Dim result 
      result = GetTime(0,50)
    ' 0 means get the time for the current chart
    ' 50 means the bar #50 which the oldest bar=1 and the current bar= bars(0).
    ' the time for the last closed bar in the current chart = GetTime (0,bars(0)-1)
      If result = "0" Then
       MsgBox "The returned value  from GetTime  is 0 .To get the detailed error information, call GetLastError()."
       elseif  result = "" then
       MsgBox "The local history is empty"
       MsgBox "The Time Value for the bar of indicated chart is : " &  result
      End If 
     End Sub

  3. #3
    blaidd drwg


    Thank You :-)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. need help with this script to calculate every bar
    By Sakr in forum VertexFX API/VTL Forum
    Replies: 1
    Last Post: 06-06-2014, 08:25 AM
  2. WCF GetChartData does not include the current bar
    By jcollins in forum VertexFX API/VTL Forum
    Replies: 4
    Last Post: 07-25-2013, 01:02 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts