Login Page - Create Account

Support Board


Date/Time: Fri, 10 Jan 2025 23:06:55 +0000



Post From: Referencing other timeframes

[2016-10-05 21:59:16]
Sean Beebe - Posts: 10
I want to get the index in another chart that is the closest bar with an Ending DateTime equal to or before a DateTime.

I see that there are functions for GetNearestMatchForSCDateTime, GetContainingIndexForSCDateTime and GetExactMatchForSCDateTime.

It seems that GetNearestMatchForSCDateTime will give me the index with a Starting DateTime equal to or before a DateTime.

And GetContainingIndexForSCDateTime will give me the index that will contain my DateTime, but it may end after which I don't want.

How can I get the index with an Ending DateTime equal to or before a DateTime?