Login Page - Create Account

Support Board


Date/Time: Wed, 25 Apr 2018 00:49:07 +0000



v1652 broke custom chart

Support Request:
[2017-11-27 12:24:59]
DabbaDo - Posts: 103
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 - 22 views
[2017-11-27 17:53:43]
Sierra Chart Engineering - Posts: 59403
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. If possible please keep your questions brief and to the point. Please be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.
[2017-11-27 17:57:32]
Sierra Chart Engineering - Posts: 59403
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. If possible please keep your questions brief and to the point. Please be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.
[2017-11-27 18:00:05]
Sierra Chart Engineering - Posts: 59403
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. If possible please keep your questions brief and to the point. Please be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.
[2017-11-27 18:30:00]
DabbaDo - Posts: 103
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: 103
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: 59403
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. If possible please keep your questions brief and to the point. Please be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.
[2017-11-27 19:07:02]
Sierra Chart Engineering - Posts: 59403
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. If possible please keep your questions brief and to the point. Please be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.

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

Login


Login Page - Create Account