Login Page - Create Account

Support Board


Date/Time: Fri, 26 Apr 2024 14:16:47 +0000



ACSIL - Associate a Tuple with each index in a subgraph

View Count: 519

[2021-05-08 21:27:26]
backinblack - Posts: 29
Hi,

I have a custom study where I am calculating some stuff and displaying it on the chart using usual:

sc.Subgraph[0][Index] = <some float value>;

The above gets displayed on the chart as expected. Works all good so far.

However, I am also looking to associate a Tuple/a pair of integers with every element of the subgraph array above without drawing them.

EG,

sc.Subgraph[0][Index] = <some float value>;

And now associate an int[x, y] with the sc.Subgraph[0][Index]


This study is intended to be used by other studies and am looking to expose this Tuple via the Subgraph array above (In addition to the main float value stored against the Index that is being drawn) so that it can be retrieved/used by the studies which are going to be referencing this study. How do I do this please?


Thanks

J
Date Time Of Last Edit: 2021-05-08 21:30:05
[2021-05-09 09:27:32]
Sierra Chart Engineering - Posts: 104368
You can do this with Subgraph extra arrays:
ACSIL Interface Members - sc.Subgraph Array: sc.Subgraph[].Arrays[][]

Also refer to:
sc.GetStudyExtraArrayFromChartUsingID()
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
[2021-05-09 11:39:00]
backinblack - Posts: 29
That was very useful, thank you!

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

Login

Login Page - Create Account