PureBytes Links
Trading Reference Links
|
To: ja@xxxxxxxxxxxx
Subject: Re: Q: Include indicator variable in another indicator...?
From: ian <ian@xxxxxxxxxxx>
Date: Mon, 05 Nov 2001 06:02:47 -1000
References: <5.0.2.1.0.20011105174430.03c35c70@xxxxxxxxxxxxxxx>
Hi,
it's usually best to code the algorthm as an Elwave FUNCTION. This allows the
code to be called from anywhere.
ie:
function old-ind
oldin = high + 1;
----------------------
indicator old-ind
plot(oldin);
-------------------------
indicator new-ind
plot(oldin + 3);
I Smith
ja@xxxxxxxxxxxx wrote:
> Hi All,
>
> If I am writing a new indicator in Easylanguage "new-ind", is there any way
> that I can include another indicator "old-ind" in this indicator (new-ind)
> and refer to old-ind's variables, without actually copying the code into
> new-ind...?
>
> For Example:
>
> old-ind
> ------------------------------------------------------------------------------
> variables: oldvar1(0);
>
> oldvar1=high + 1
> ------------------------------------------------------------------------------
>
> new-ind
> ------------------------------------------------------------------------------
> variables: newvar1(0);
>
> newvar1= oldvar1 + 3
> ------------------------------------------------------------------------------
>
> How would I do this...?
>
> Any help appreciated.
>
> -Jerry
|