Login Page - Create Account

Support Board


Date/Time: Sun, 28 Apr 2024 12:24:10 +0000



GetExtendedArraySize()

View Count: 716

[2016-12-29 03:25:03]
b3cker - Posts: 34
Hello,

Extending bars to the right seems to work for a Subgraph[0] but does the sc.Subgraph[0].Arrays[1] also gets extended to the right at same time automatically? I am using it to store intermittent results.
Also is there a limit to number of bars extended to the right?

Thank You

Gary Becker

SCSubgraphRef MAS = sc.Subgraph[0];
SCFloatArrayRef ffpl = sc.Subgraph[0].Arrays[1];
Length.SetInt(135);
ForwardCycle.SetInt(Length.GetInt() * 4);
MAS.ExtendedArrayElementsToGraph = ForwardCycle.GetInt();
[2016-12-29 16:32:05]
b3cker - Posts: 34
Does GetExtendedArraySize() returns ExtendedArrayElementsToGraph not ArraySize + ExtendedArrayElementsToGraph?
Also it seems ExtendedArrayElementsToGraph is limited to 150 bars. Is it correct?

Thank You
[2016-12-29 18:33:58]
Sierra Chart Engineering - Posts: 104368
but does the sc.Subgraph[0].Arrays[1] also gets extended to the right at same time automatically?
Yes.

You can increase the number of columns after the last bar with:

http://www.sierrachart.com/index.php?page=doc/ChartSettings.html#NumForwardColumns

GetExtendedArraySize() returns ArraySize + ExtendedArrayElementsToGraph.
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