Page 1 of 1

How do you code multiple timeframes?

Posted: Sep 21 2006
by gpw797
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}

Re: How do you code multiple timeframes?

Posted: Sep 25 2006
by Chris
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

Posted: Sep 25 2006
by Alex Kramer
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!