Login Page - Create Account

Support Board


Date/Time: Sat, 27 Apr 2024 13:33:48 +0000



v1652 broke custom chart

View Count: 679

[2017-11-27 12:24:59]
DabbaDo - Posts: 146
At line 184 in the attached study, per the snip below, rChartDataReloadedFlag ALWAYS comes back 1.


int& rChartDataReloadedFlag = sc.GetPersistentInt(CUSTOM_CHART_BAR_RELOAD_FLAG_KEY);
if (rChartDataReloadedFlag == 0)
{
sc.FlagToReloadChartData = true;
rChartDataReloadedFlag = 1;
}

But at line 26, the same pattern ALWAYS comes back 0.


int& rChartDataReloadedFlag = chartBarInterface.GetPersistentInt(CUSTOM_CHART_BAR_RELOAD_FLAG_KEY);
if (rChartDataReloadedFlag == 0)
{
// Not ready to start yet
return;
}
Cheers,
Dale
attachmentBruUniVolumeTick.cpp - Attached On 2017-11-27 12:20:02 UTC - Size: 10.2 KB - 310 views
[2017-11-27 17:53:43]
Sierra Chart Engineering - Posts: 104368
We are going to need a few days to look into this.
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, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2017-11-27 17:57:32]
Sierra Chart Engineering - Posts: 104368
But this really may not indicate a problem.

You really should not be relying on that particular persistent integer in the way that you are. Sometimes it is going to be zero like when the custom chart bar study is already on the chart when opening a Chartbook.
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, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2017-11-27 18:00:05]
Sierra Chart Engineering - Posts: 104368
Is this returning 1 when the study is first added to the chart and the chart is reloaded?
int& rChartDataReloadedFlag = chartBarInterface.GetPersistentInt(CUSTOM_CHART_BAR_RELOAD_FLAG_KEY);

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, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2017-11-27 18:30:00]
DabbaDo - Posts: 146
No, chartBarInterface always returns 0 even when the study is first added to the chart and the chart is reloaded.
So I see that chartBarInterface.GetPersistentInt(CUSTOM_CHART_BAR_RELOAD_FLAG_KEY) isn't pointing to the same address as sc.GetPersistentInt(CUSTOM_CHART_BAR_RELOAD_FLAG_KEY), and I'll stop relying on it.
Cheers,
Dale
[2017-11-27 18:41:01]
DabbaDo - Posts: 146
Bottom line, chartBarInterface.GetPersistentXXX pointed to the same address space as sc.GetPersistentXXX before v1652.
Now they point to different areas.
Hopefully they don't overlap! :)
Cheers,
Dale
[2017-11-27 18:58:08]
Sierra Chart Engineering - Posts: 104368
The address does not matter because a copy is made of the persistent variables during data loading.

We will be looking into this.
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, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2017-11-27 19:07:02]
Sierra Chart Engineering - Posts: 104368
OK we now know what the problem is. We now have this corrected.

We will have a new release out today or tomorrow.
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, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing

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

Login

Login Page - Create Account