Login Page - Create Account

Support Board


Date/Time: Wed, 28 Jan 2026 17:50:22 +0000



Post From: how to calculate and plot over arrays on different timeframes in ACSIL?

[2025-12-12 14:58:49]
User431178 - Posts: 838
Iteration over oneMinDateTimes works just fine with the approach above and also fetching various candle metrics from oneMinData by those datetime indexes also works.
Sure, it just means that all bars would have the same value set during recalculation.

the issue is with extra arrays, that I thought would indexeable the same way as chart from which they are fetched.
They are.


Input_Length.Name = "Test Length";
Input_Length.SetInt(100);


sc.GetStudyExtraArrayFromChartUsingID(oneMinChartNumber, Input_Length.GetStudyID(), 0, 0, tpv);

This won’t work correctly because SetInt writes to the first 4 bytes (offset 0–3) of the union inside sc.Input, while GetStudyID reads from bytes 4–7, which were never written by SetInt and therefore contain unrelated or undefined data.



tpv[dataIndex] = tpvVal;
sc.Summation(tpv, tpvSum, Input_Length.GetInt());

What are you trying to do here?

You are getting from the other chart then writing over it in your local float array.
The values you set won't persist between function calls.
When you call sc.Summation without an index value, it uses sc.Index so that won't be referring to the correct (one minute) indexes in tpv or tpvSum anyway.

Is the code you posted representative of what you are trying to do, or it is edited for posting and not necessariliy correct?
Date Time Of Last Edit: 2025-12-12 15:00:02