Login Page - Create Account

Support Board


Date/Time: Fri, 22 Nov 2024 14:04:10 +0000



Compile error for GetStudyPersistentVariablesFromChartUsingID

View Count: 2167

[2013-05-02 16:24:24]
joshtrader - Posts: 488
const s_sc::s_PersistentVariables * p_PersistVars = GetStudyPersistentVariablesFromChartUsingID(1, 3);

This is returning an error:
":46:102: error: 'GetStudyPersistentVariablesFromChartUsingID' was not declared in this scope"

At the top I have:

#include "sierrachart.h"

What am I missing? I see the definition in sierrachart.h, so I'm not sure what's up.
Date Time Of Last Edit: 2013-05-02 16:25:56
[2013-05-02 16:33:25]
Sierra Chart Engineering - Posts: 104368
You need to prefix it with sc.
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
Date Time Of Last Edit: 2013-05-02 16:43:03
[2013-05-02 16:40:11]
joshtrader - Posts: 488
I don't understand what "you need to proceed it with sc." means.. I copied the code directly from the SC documentation.
Date Time Of Last Edit: 2013-05-02 16:42:41
[2013-05-02 16:44:23]
Sierra Chart Engineering - Posts: 104368
The documentation has been corrected and there was a slight dictation error with the prior post. It has been corrected.
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
[2013-05-02 16:57:07]
joshtrader - Posts: 488
OK thank you, it is compiling now.

With this study I am trying to set the main price graph scale top and bottom to be the same as that of another chart. I have the values now, but is there a way for me to set the top and bottom value of the primary region's scale? I can do it for a study using sc.ScaleRangeTop and sc.ScaleRangeBottom, and I see the sc.BaseGraphScaleRangeType to set the , but do not see how to set the top and bottom values. I tried sc.BaseGraphScaleRangeTop but this does not exist.
[2013-05-03 00:06:35]
Sierra Chart Engineering - Posts: 104368
No, this is not supported. We will have to get to it later on.
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