Login Page - Create Account

Support Board


Date/Time: Tue, 27 Oct 2026 03:44:51 +0000



Post From: cannot get time in ATBB

[2026-10-27 00:17:20]
walt_IB - Posts: 7
I am attempting to debug and it looks the "sc.BaseDateTimeIn[sc.Index]" does not seem to work.
I put a stop where "exitnow" is set and it never hits...


int hour = 0;
int minute = 0;
int second = 0;
bool exitNow;
SCDateTime barTime = sc.BaseDateTimeIn[sc.Index];
barTime.GetTimeHMS(hour, minute, second);
if (hour == 15 && minute >= 44 )
{
exitNow = true;//never gets here
}
Can something else be used to get the time of the bar?
>> I've had the same issue running live...
Date Time Of Last Edit: 2026-10-27 00:57:46