Login Page - Create Account

Support Board


Date/Time: Sun, 05 May 2024 09:15:03 +0000



Get color of remote subgraph

View Count: 1106

[2016-09-15 03:43:57]
onnb - Posts: 661
is it possible to retrieve the color of a remote subgraph?

I see this function - GetStudyDataColorArrayFromChartUsingID
Should that work?
[2016-09-15 05:47:36]
Sierra Chart Engineering - Posts: 104368
This function needs to be documented and it is for getting a Subgraph Data Color array for another study which can also be in a different chart.

So unless that array is filled in, it will not useful.
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: 2016-09-15 05:49:15
[2016-09-15 16:34:48]
onnb - Posts: 661
Just to see I understand

I have study A that is referencing a subgraph from study B. I should be able to see the COLORREF values for the subgraph at each index?

In the following example, if study id 1 is MACD, data[sc.Index] should be the color of the COLORREF value of the histogram?

(Right now I am getting 0's)


SCColorArray data;
sc.GetStudyDataColorArrayFromChartUsingID(sc.ChartNumber, 1, 2, data);


For the same chart/study, the following returns the values of the macd histogram.

    
SCFloatArray value;
sc.GetStudyArrayUsingID(1, 2, value);

[2016-09-15 17:23:05]
Sierra Chart Engineering - Posts: 104368
This is not going to work because the MACD study does not use this member:
http://www.sierrachart.com/index.php?page=doc/ACSIL_Members_scSubgraph.html#scSubgraphDataColor
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
[2016-09-15 17:38:10]
onnb - Posts: 661
"So unless that array is filled in, it will not useful."
Now I get it.

Can you consider extending this function so it returns the color that is used when this member is not set?
[2016-09-15 19:06:45]
Sierra Chart Engineering - Posts: 104368
There would have to be a completely new function for this. This is part of our longer-term development plans for ACSIL which will be starting on sometime later this year.
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
[2020-03-13 16:18:37]
@sstfrederik - Posts: 403
This would be great to add. Any new updates?
[2020-03-13 16:38:09]
User978794 - Posts: 1
Yes, I'm wondering about this as well. What would it take to push this along?

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

Login

Login Page - Create Account