Login Page - Create Account

Support Board


Date/Time: Mon, 25 Nov 2024 09:37:13 +0000



Custom chart builder reload behavior

View Count: 323

[2024-03-18 14:52:12]
User907968 - Posts: 823
Hi support,

Something strange is happening with custom chart builder on during chart reload, but only when connected to the data feed.

It appears as though the builder function is not being called for the most recently added records, which leads to weird behavior on the last few bars.
For example, sometimes all the volume for the records that are not processed through the builder function is dumped onto a few bars at the end of the chart.

Below is an extract of debug messages printed to the console in visual studio.

- There is always at least one message printed per call to the builder function, these are shown bold below.
- I assume that the thread exit shown on the italicised line is data downloading or loading.
- In the next call to the builder we have inexplicably skipped from bar index 1509 straight to 1517, leaving bars 1510-1516 in an undesriable/unprocessed state.

Any idea why this would be?

If I reload the chart with the data feed disconnected, it loads correctly and consistently, processing all records.


Builder Function Called Time MS: 34702492 Index: 1509
Final Processing: Volume: 39 Index: 1509
Clearing Bar Data: Index 1509
Bar Values at Index: 1509
O: 5231.75 H: 5231.75 L: 5231.75 C: 5231.75 V: 39
Bar Values at Index: 1509
O: 5231.75 H: 5231.75 L: 5231.75 C: 5231.75 V: 3
Current Record Values at Index: 1509
O: 5231.75 H: 5231.75 L: 5231.75 C: 5231.75 V: 3
The thread 5824 has exited with code 0 (0x0).
Builder Function Called Time MS: 0 Index: 1517
Is Insert File Records Processing: Index: 1517
Bar Values at Index: 1517
O: 5232 H: 5232 L: 5232 C: 5232 V: 3
Current Record Values at Index: 1517
O: 0 H: 0 L: 0 C: 0 V: 0
Builder Function Called Time MS: 34742604 Index: 1517
Time MS: 34742604
Volume at Index 1517 <= Threshold
Bar Values at Index: 1517
O: 5232 H: 5232 L: 5232 C: 5232 V: 3
Current Record Values at Index: 1517
O: 5232 H: 5232 L: 5232 C: 5232 V: 1
Builder Function Called Time MS: 34742604 Index: 1517
Final Processing: Volume: 4 Index: 1517

[2024-03-18 15:04:34]
Sierra_Chart Engineering - Posts: 17172
The chart bar indexes are controlled by the custom chart bar function. It is the function which specifies to start a new bar. The concept of a skipped index in this interface does not make sense.

The custom bar function will be called for every Intraday record which can be every tick. Not likely there is a problem with that.

Maybe there is some unexpected behavior related to splitting data records. We would have to look at how that works with custom chart bars.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2024-03-18 15:05:03
[2024-03-18 15:38:08]
User907968 - Posts: 823
I agree, it doesn't make sense.
The debug info posted above is copied verbatim from the VS output console, so where/how the extra bars are added (if not by a call to the builder function) is beyond me.

Data is set to 1-tick granularity, so shouldn't relate to splitting records (should it?)

For static chart reloading (and reloading during replay) everything is rock solid, the weird behavior only happens when reloading whilst connected to streaming data.
[2024-03-20 02:46:12]
Sierra_Chart Engineering - Posts: 17172
Disable this setting:
Chart Settings: Split Data Records (applies to Number of Trades, Volume and Range charts) (Chart >> Chart Settings >> Chart Data >> Chart Data menu)

Let us know if that changes anything.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-03-20 08:15:23]
User907968 - Posts: 823
Hello,
Thanks for coming back to me.
No change, unfortunately.
[2024-03-20 22:28:48]
Sierra_Chart Engineering - Posts: 17172
We will look this over, but we do not know how soon we can get to it. It may not be until months from now.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2024-04-05 18:20:36
[2024-03-21 10:56:02]
User907968 - Posts: 823
Ok, understood.
Anything you can do would be greatly appreciated.
Thanks.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account