Returns the bar index of the date and time. This bar index synchronizes with the instrument.bar. To find the close for a bar Index returned, subtract from instrument.bar and use as a lookback index.
Note:
Function will returns -1 when the date and or time cannot be not found in the instrument series.
Syntax: |
---|
barIndex = instrument.GetDayIndex( date, time ) |
Parameter: |
Description: |
---|---|
date |
The date in YYYYMMDD format. |
time |
The time in HHMM format. |
Example: |
---|
barIndex = instrument.GetDayIndex( 20060101, 1130 ) |
Returns: |
---|
Displays the close price and date-time values of the specified instrument record. |
Links: |
---|
See Also: |
|
Edit Time: 9/7/2020 3:56:25 PM |
Topic ID#: 350 |