[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: variable declarations within EL?



PureBytes Links

Trading Reference Links

On Sat, 15 Dec 2001, Bob Fulks wrote:

> At 3:32 PM -0600 12/15/01, Mike Eggleston wrote:
> 
> >Now the question, how can I politely let TS6 know that I only want
> >the immediate values and not any previous instances?
> 
> I was under the impression that if you do not refer to a past value
> of any variable, in a statement such as:
> 
>     Value = variable[j];
> 
> then TS would not assign storage for all the past MaxBarsBack values.
> 
> I could be wrong, of course, or they could have changed things in TS6.
> 
> In any case, keeping the old values should take essentially no time
> if they use the standard practice of keeping the values in a circular
> buffer. But, of course, they may not be doing it the easy way...
> 
> Bob Fulks
> 

I understand the comment and also belive it works that way, but if
I do keep the value of an intermediate calculation in a variable
as you show above, how do I tell EL not to turn that variable into
a price series and hence save its value each iteration?

A circular buffer of unknown size? A singly-linked list is what I 
thought of.

Mike