Returns the bar index of the date and optional 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:
Returns -1 if the date is not found in the instrument series.
Syntax: |
---|
barIndex = instrument.GetDayIndex( date, [time] ) |
Parameter: |
Description: |
---|---|
date |
The date in YYYYMMDD format. |
[time] |
Optional: The time in HHMM format. |
Example: |
---|
barIndex = instrument.GetDayIndex( 20060101 ) |
Returns: |
---|
|
Links: |
---|
See Also: |
|
Edit Time: 9/7/2020 3:57:20 PM |
Topic ID#: 351 |