How do you code multiple timeframes?

Questions about MultiCharts and user contributed studies.
gpw797
Posts: 216
Joined: 04 Mar 2006
Has thanked: 3 times
Been thanked: 7 times

How do you code multiple timeframes?

Postby gpw797 » 21 Sep 2006

I have several different point (range) timeframes that I want to address in a strategy how do I differentiate between the different data sources in the code?

for example:

condition1 = avg(price, number) > x {for price range compression 1}
condition2 = avg(price, number) > x {for price range compression 2}

Chris
Posts: 150
Joined: 17 Nov 2005

Re: How do you code multiple timeframes?

Postby Chris » 25 Sep 2006

I have several different point (range) timeframes that I want to address in a strategy how do I differentiate between the different data sources in the code?

for example:

condition1 = avg(price, number) > x {for price range compression 1}
condition2 = avg(price, number) > x {for price range compression 2}
You can access the different data streams by reffering to them in the code.

For example

Code: Select all

Close of Data(2)
will give you the Close price of your datastream 2.

There are a couple of things to take of when working with multiple datastreams, so I'd suggest to take a look at the EasyLanguage reference guides.

Chris

User avatar
Alex Kramer
Posts: 834
Joined: 23 Feb 2006

Postby Alex Kramer » 25 Sep 2006

Thank you ever so much, Chris, I haven't been able to take care of the EasyLanguage questions most of the day - and when I get to them I see them already answered by you!


Return to “MultiCharts”