Login Page - Create Account

Support Board


Date/Time: Wed, 28 Jan 2026 17:51:30 +0000



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

[2025-12-12 16:19:37]
User431178 - Posts: 838
They do not - in oneMindData subgraphs - I tested this. sc.AutoLoop = true; seems to makes it all work.

This is from the message log, generated using your code exactly as posted.


2025-12-12 09:34:33.864 | Chart: ESZ25-CME[M] 15 Sec #1 | Study: MyTest | sc.index=0 dataIndex=987 oneMinDataLen=60 tpvLen=0
2025-12-12 09:34:33.864 | Chart: ESZ25-CME[M] 15 Sec #1 | Study: MyTest | sc.index=1 dataIndex=987 oneMinDataLen=60 tpvLen=0
2025-12-12 09:34:33.864 | Chart: ESZ25-CME[M] 15 Sec #1 | Study: MyTest | sc.index=2 dataIndex=987 oneMinDataLen=60 tpvLen=0
2025-12-12 09:34:33.864 | Chart: ESZ25-CME[M] 15 Sec #1 | Study: MyTest | sc.index=3 dataIndex=987 oneMinDataLen=60 tpvLen=0
2025-12-12 09:34:33.864 | Chart: ESZ25-CME[M] 15 Sec #1 | Study: MyTest | sc.index=4 dataIndex=987 oneMinDataLen=60 tpvLen=0
....
2025-12-12 09:34:33.890 | Chart: ESZ25-CME[M] 15 Sec #1 | Study: MyTest | sc.index=3866 dataIndex=987 oneMinDataLen=60 tpvLen=0
2025-12-12 09:34:33.890 | Chart: ESZ25-CME[M] 15 Sec #1 | Study: MyTest | sc.index=3867 dataIndex=987 oneMinDataLen=60 tpvLen=0
2025-12-12 09:34:33.890 | Chart: ESZ25-CME[M] 15 Sec #1 | Study: MyTest | sc.index=3868 dataIndex=987 oneMinDataLen=60 tpvLen=0
2025-12-12 09:34:33.890 | Chart: ESZ25-CME[M] 15 Sec #1 | Study: MyTest | sc.index=3869 dataIndex=987 oneMinDataLen=60 tpvLen=0
2025-12-12 09:34:33.890 | Chart: ESZ25-CME[M] 15 Sec #1 | Study: MyTest | sc.index=3870 dataIndex=987 oneMinDataLen=60 tpvLen=0

Notice that dataIndex is 987 from start to end.
Which means that this code will have the exact same value for every bar in the chart - is that what you want?

float atp = (oneMinData[SC_LAST][dataIndex] + oneMinData[SC_HIGH][dataIndex] + oneMinData[SC_LOW][dataIndex]) / 3;


I'd like calculate a rolling sum of one minute average true price data multiplied by one minute volume, of length 100, which then I'm plotting on my primary 15 second chart. My actual indicators are very different but this shows what I'm trying to do.

So you don't actually have any study in the 1-min chart, you literally want the 1-min graph data?
If that is the case, what are you expecting from this, there is no study to reference and no "extra arrays" to get?


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

SCFloatArray tpvSum;
sc.GetStudyExtraArrayFromChartUsingID(oneMinChartNumber, Input_Length.GetStudyID(), 0, 1, tpvSum);