DateTime timestamp array corresponding to Bars accessible in AFL?

I know Open, Close, High arrays are accessible from AFL using an index (example Close[i]) .

There should be a corresponding DateTime array also which stores the timestamps of each bar.

I have searched the manual and the forum but cannot figure out a way to access it.

Alternatively if there was a way to point the current bar to a specific index, I could use TimeNow() and similar functions.

Any help will be appreciated.

Thanks

Hi @explorer - welcome to the forum.

Have you tried experimenting with the DateTime() function? It should give you everything that you need.

https://www.amibroker.com/guide/afl/datetime.html

That did it! Thank you!

I had kept on missing the fact that DateTime() returns an array and not just a single value.