Posted by Mohammad Rahhal, Last modified by Salameh Abu Hashish on 20 February 2019 09:47 AM


Public Function iTtime(Symbol As String, timeFrame As ENUM_TIMEFRAMES, shift As Long)As Double

This function is used to return the time value for the specific bar by a given it number.


Key Description 
Symbol Trading symbol name , value of type String.
timeframe The chart time frame , can be on of the  ENUM_TIMEFRAMES.
Shift Bar number to know the time for it , value of type Long. 

Return value

Return's the time value for the indicated symbol, Timefarme and bar number as a double value. These Function returns 0 if the history is not loaded.


Public Sub main()

  Dim barNumber

 Dim result


 result=iTime ("EUR/USD",PERIOD_D1,Clng(barNumber))

  AlertMessage("The time value for bar Number " & Cstr(barNumber) &  " is "  & CSTR(result))

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