Login Page - Create Account

Support Board


Date/Time: Thu, 02 May 2024 07:31:40 +0000



Post From: determine the session end date time in ACSIL

[2018-01-20 10:50:08]
Cavalry3162 - Posts: 523
Hello SC,

i've found this snippet in your ACSIL documentation:

SCDateTime StartDateTime = sc.GetTradingDayStartDateTimeOfBar(sc.BaseDateTimeIn[sc.Index]);
int StartBarIndex = sc.GetContainingIndexForSCDateTime(sc.ChartNumber, StartDateTime);

to determine the bar index for the beginning of the "current" session...

however, i would need to determine the End of the current session (even if its in the future) too so i searched for a sc.GetTradingDayEndDateTimeOfBar method but it wasnt there... Is there a way to get that session end info?

thank you,
Andreas