Multitime frame data access

Questions about MultiCharts and user contributed studies.
Wally_AD
Posts: 47
Joined: 28 Jan 2014
Has thanked: 8 times
Been thanked: 7 times

Multitime frame data access

Postby Wally_AD » 10 May 2014

Code: Select all

Inputs: Price1(Close of data1), Price5(Close of data2), ..
MA5 = XAverage( Price5, 5 ) ;
MA13 = XAverage( Price5, 21) ;
This code does not work.
To use data2 for Price5 it must be coded like this:

Code: Select all

MA5 = XAverage( Price5, 5 ) data2;
MA13 = XAverage( Price5, 21) data2;
Can somebody explain why referring to Price5 is not enough?

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Multitime frame data access

Postby TJ » 10 May 2014

Code: Select all

Inputs: Price1(Close of data1), Price5(Close of data2), ..
MA5 = XAverage( Price5, 5 ) ;
MA13 = XAverage( Price5, 21) ;
This code does not work.
To use data2 for Price5 it must be coded like this:

Code: Select all

MA5 = XAverage( Price5, 5 ) data2;
MA13 = XAverage( Price5, 21) data2;
Can somebody explain why referring to Price5 is not enough?
See post #5
viewtopic.php?f=16&t=6929


Return to “MultiCharts”