# [Question] Need to understand the basic concept

Questions about MultiCharts and user contributed studies.
2haerim
Posts: 502
Joined: 01 Sep 2006
Been thanked: 2 times

### [Question] Need to understand the basic concept

A Chart C has Data1 (1 min) and Data2 (5 min) or the reverse.

Time: t100, ... , t90, ...., t80, ..., t70, ..., t60, ..., t50, ..., t40, ..., t30, ..., t20, ..., t10, ..., t1, t0 (t0 is the last one)
Data1 has the following data: m100, ..., m90, ..., m80, ..., m70, ..., m60, ..., m50, ..., m40, ..., m30, ..., m20, ..., m10, ..., m1, m0 (m0 is the last one)
Data2 has the following data: n10, n9, n8, , n7, , n6, , n5, , n4 , n3 , n2 , n1 , n0 (n0 is the last one)

A study or signal T having the following lines:

Code: Select all

`Vars: V1(0), V2(0, Data2);//---- simple function with series dataV1 = Average(C, 5); // Equivalent to Average(C of Data1, 5) of Data1; ?V1 = Average(C of Data2, 5); // Equivalent to Average(C of Data2, 5) of Data1; ?V1 = Average(C, 5) of Data2; // Equivalent to Average(C of Data1, 5) of Data2; ?V1 = Average(C of Data1, 5) of Data2;V1 = Average(C of Data2, 5) of Data2;//---- series function with series dataV1 = XAverage(C, 5); // Equivalent to XAverage(C of Data1, 5) of Data1; ?V1 = XAverage(C of Data2, 5); // Equivalent to XAverage(C of Data2, 5) of Data1; ?V1 = XAverage(C, 5) of Data2; // Equivalent to XAverage(C of Data1, 5) of Data2; ?V1 = XAverage(C of Data1, 5) of Data2;V1 = XAverage(C of Data2, 5) of Data2;//---- simple function with series dataV2 = Average(C, 5); // Equivalent to Average(C of Data1, 5) of Data1; ?V2 = Average(C of Data2, 5); // Equivalent to Average(C of Data2, 5) of Data1; ?V2 = Average(C, 5) of Data2; // Equivalent to Average(C of Data1, 5) of Data2; ?V2 = Average(C of Data1, 5) of Data2;V2 = Average(C of Data2, 5) of Data2;//---- series function with series dataV2 = XAverage(C, 5); // Equivalent to XAverage(C of Data1, 5) of Data1; ?V2 = XAverage(C of Data2, 5); // Equivalent to XAverage(C of Data2, 5) of Data1; ?V2 = XAverage(C, 5) of Data2; // Equivalent to XAverage(C of Data1, 5) of Data2; ?V2 = XAverage(C of Data1, 5) of Data2;V2 = XAverage(C of Data2, 5) of Data2;`

Above 20 lines of study T can be applied with Base Study On either Data1 or Data2.

At the time of t0 we have both Data1 (m0) and Data2(n0) completed.
At the time of t1 we have Data1 (m0) completed but Data2(n0) incompleted.

So I can think of 80 cases calculation involved.

When I work with a multi-series chart, It seems to be utmost important to understand how they are different and how they are calcuated.
Without crystal-clear understanding of this basic concept, it is a real nightmare when working with a multi-series chart.

Can someone explain this in a very detail?

And are there any cases in which any difference from TS can be found?

--
HR