Login Page - Create Account

Support Board


Date/Time: Thu, 25 Apr 2024 23:55:43 +0000



Post From: Sierra Chart Now Supports Building Custom Chart Bars Efficiently in ACSIL

[2020-01-15 15:41:45]
Zosimus - Posts: 345
Hi SC team, if this is out the scope of your support I will totally understand no reply.

Is there any mechanism that can cause the initiation of a new bar other than:
1. Setting StartNewBarFlag to 1.
2. Checking New Bar At Session Start.
?

The custom chart I'm writing loads the historical bars correctly but as it starts processing the live data it right away creates a new bar that is not supposed to be started at this point.

I have ChartBarInterface.StartNewBarFlag = 0; at the beginning of the Custom chart Bars building function.
I am assuming that this new bar is not created by the code setting StartNewBarFlag to 1 because whenever the code sets StartNewBarFlag to 1 it also sends a line confirming this to a text file. I see that when this incorrect new bar starts no text is sent to the text file.
New Bar At Session Start is not checked.

What is also strange is that this behaviour only happens sometimes, not every time I start the custom chart study. Sometimes the new live data gets incorporated into the last existing bar as I expect it to.
Any idea?