Login Page - Create Account

Support Board


Date/Time: Mon, 25 Nov 2024 09:43:29 +0000



Post From: Custom chart builder reload behavior

[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