Syntax
Public Function iLow(Symbol As String, timeFrame As ENUM_TIMEFRAMES, shift As Long)As Double
Description
This function isused to return the low price value for a bar at a specific timeby a given its number.
Parameters
Key | Description |
Symbol | Trading symbol name, the value of type String. |
timeframe | The chart time frame can be one of the ENUM_TIMEFRAMES |
Shift | Bar number to get low price value for it, the value of type Long. |
Return value
Return’s the low value for the indicated symbol, Timefarme and bar number as a double value. These Function returns 0 if the history is not loaded.
Sample
Public Sub main() Dim barNumber Dim result barNumber=3 result=iLow("EUR/USD",PERIOD_D1,Clng(barNumber)) if result=0 then ' print a message to the VTL10Log log file PrintData " The Low value not loaded " else ' print a message to the VTL10Log log file PrintData("The Low value for bar Number " & Cstr(barNumber) & " is " & CSTR(result)) end if End Sub
See Also