Login Page - Create Account

Support Board


Date/Time: Thu, 28 Nov 2024 01:33:02 +0000



Post From: How to compare sc.BaseDateTimeIn[sc.Index].GetTime() with s_ChartSessionTimes.StartTime

[2023-06-21 12:23:38]
emmanuel - Posts: 58
I figured it out:

n_ACSIL::s_ChartSessionTimes SessionTimes;
sc.GetSessionTimesFromChart(sc.ChartNumber, SessionTimes);
int BarTime = sc.BaseDateTimeIn[sc.Index].GetTime();
int StartTime = SessionTimes.StartTime.GetTime();
int EndTime = SessionTimes.EndTime.GetTime();

if(BarTime < StartTime || BarTime >= EndTime) return;