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

Re: Need EL help - NumericSeries array possible?



PureBytes Links

Trading Reference Links

Hello Alex,

You can ensure that a function is series by adding a dummy
variable to the function:

Vars: dummy(0);
dummy = dummy[2]; { forces series function }


Best regards,
 Roy                            mailto:tozar@xxxxxxxxxxxxx

-- 
Monday, January 13, 2003, 12:05:25 AM, you wrote:

AM> I've run into a little EL coding problem.

AM> I have a function with the following arguments:

AM> inputs: Price[n](NumericArray), length(NumericSimple),
AM> slope[m](NumericArrayRef);

AM> What this function is supposed to do is calculate slopes of up to 30 data
AM> streams -- I have data1 to data30 saved each bar into my Price[] array,
AM> then I pass it to this function to update 30 slopes (passed by reference).

AM> Within the function I need to reference previous values of the array
AM> elements, like Price[j][2] to reference the j-th element of the Price[]
AM> array 2 bars ago.

AM> PowerEditor complains.  It tells me that I can't reference previous values
AM> of simple variables.  And yet, I cannot figure out how to make this into a
AM> series function so I *can* reference previous values in my array!

AM> Any suggestions?

AM> -Alex