Login Page - Create Account

Support Board


Date/Time: Sat, 11 Jan 2025 20:02:32 +0000



Custom Array - Repeat open n bars

View Count: 1185

[2016-12-26 04:43:12]
jakesans - Posts: 50
Hi SC-
Doubtful possible with Spreadsheet study, but if use ACSIL Custom Study how do I create the following array?

E.g.

Open bar0 = 53.23 - replace to 53.22
Open bar-1 = 53.27 - replace to 53.22
Open bar-2 = 53.22
Open bar-3 = 53.24 - replace to 53.23
Open bar-4 = 53.23 - replace to 53.23
Open bar-5 = 53.23
Open bar-6 = 53.18 - replace to 53.19
Open bar-7 = 53.17 - replace to 53.19
Open bar-8 = 53.19

Output Array {53.22,53.22,53.22,53.23,53.23,53.23,53.19,53.19,53.19}

Thx, Jake
Date Time Of Last Edit: 2016-12-26 04:43:37
[2016-12-26 17:34:08]
Sierra Chart Engineering - Posts: 104368
If you are using ACSIL, here is the relevant reference for arrays:
http://www.cplusplus.com/doc/tutorial/arrays/

You can also use one of the Arrays on a sc.Subgraph:
ACSIL Interface Members - sc.Subgraph Array: sc.Subgraph[].Arrays[][]
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