Login Page - Create Account

Support Board


Date/Time: Mon, 29 Apr 2024 16:22:14 +0000



ACSIL : Will sc.GetStudyArrayUsingID work when study is not based ?

View Count: 2816

[2014-10-09 19:52:18]
wwwingman - Posts: 185
Hi,

When calling sc.GetStudyArrayUsingID with study settings set to <Main Price Graph>, returned array is ok.
When calling with study settings set to another input, for ex CumulativeDeltaVolume, it returns an empty array.
I use LOW_PREC_LEVEL.

Did I miss something ?

W.

[2014-10-09 21:56:59]
Sierra Chart Engineering - Posts: 104368
What you are describing only means the study you are getting has not been calculated or the study identifier is not valid.
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
[2014-10-09 23:12:13]
wwwingman - Posts: 185
Thank you.

I believe the study identifier is valid.

The problem seems indeed to come from the calculation / availability of the array :
* it is available for the latest bar.
* if study settings is based on Main Price Graph, it is available on bar index 0.
* if study settings is not Main Price Graph, it is not available before latest bar.
This is annoying, because I need the data before the latest bar and because I need a different input settings.

Please advise.

W.



Date Time Of Last Edit: 2014-10-09 23:12:53
[2014-10-10 00:08:03]
wwwingman - Posts: 185
Update : Please ignore the following message. It is not true.

>>
If of any help :

When using 1 SCInputRef for inputing the study id + study subgraph through SetStudySubgraphValues I get the above "problems".

But, when using 2 SCInputRef for inputing the study id (with SetStudyID) and subgraph (with SetStudySubgraphValues) it works as expected.

Maybe SetStudySubgraphValues does not set things the same as SetStudyID + SetStudySubgraphValues.
<<
W.

Date Time Of Last Edit: 2014-10-10 07:45:54
[2014-10-10 03:26:40]
Sierra Chart Engineering - Posts: 104368
Refer to this section here about calculation precedence:
https://www.sierrachart.com/index.php?page=doc/doc_ChartStudies.html#StudyCalculationPrecedence

You will need to work this out.
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
[2014-10-10 08:23:16]
wwwingman - Posts: 185
Thank you.

Moving up the sc.GetStudyArrayUsingID caller, in the studies to graph, SOLVED THE PROBLEM.

I am was wrong saying SetStudySubgraphValues and SetStudyID+SetStudySubgraphValues have different behaviors (and updated the post above).

However :
* Changing the sc.GetStudyArrayUsingID caller precedence to low/very low DID NOT solve the problem.
* This means calculation precedence is complicated and part of the complexity makes the usage of my study less reliable for my user.
Bottom line : It works ! However, I don't like the idea an indicator works in relation to his place in the studies to graph so will have to go for a solution to avoid using sc.GetStudyArrayUsingID :(

W.

[2014-10-13 23:24:14]
Sierra Chart Engineering - Posts: 104368

* This means calculation precedence is complicated and part of the complexity makes the usage of my study less reliable for my user.
Yes it is. Unless we have a thorough understanding of what you are doing and this is not within the scope of our support, it is hard for us to give any specific recommendation.


Moving up the sc.GetStudyArrayUsingID caller, in the studies to graph, SOLVED THE PROBLEM.
For example, this does not make sense to us but we do not know exactly what you are doing. We would think the exact opposite.
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: 2014-10-13 23:24:31

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

Login

Login Page - Create Account