Login Page - Create Account

Support Board


Date/Time: Thu, 28 Nov 2024 20:44:47 +0000



Post From: Behaviour of GetBarHasClosedStatus()

[2023-04-05 12:36:04]
User333366 - Posts: 10
Hi, I am new to Sierra and I just want to check something rather technical

I understand that each update gets processed and that the system only knows the bar is complete when there is an update in a new bar.

But does that mean that the last update of each bar gets process twice, once with a status of BHCS_BAR_HAS_NOT_CLOSED and then consequently with a status BHCS_BAR_HAS_CLOSED?


// Data processing code
if (sc.GetBarHasClosedStatus(sc.Index) == BHCS_BAR_HAS_NOT_CLOSED)
{
// process update that is not closed yet
}
else
{
// process closed bar
}