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

Re: Arrays/Dlls



PureBytes Links

Trading Reference Links

Multidimensional arrays don't work in TS. There was a brief discussion on
that just
short time ago. From whatever you are describing  you probably don't need
an MD
array. If you just want to capture data and its 5 attributes a 2D array
will do just fine.
If you need more you can use 3  2D arrays.
>From your declaration I see you want to do 10x10x1001x6. This is a 4D and
is
pretty hard to understand what you are trying to do.
If you can describe what you are trying to do in detail I might
be able to give you some pointers. As far as sorting I have to warn you
again about
MD - it could be a nightmare trying to do that in MD. Plus with 1001 cells
its
gonna take some time to sort. But should not be a problem  in 2D.
You've mentioned " for plotting ".Plotting in where?  As far as
complexity, arrays are
the upper limit of EL programming. This is just about the most compacted
of EL.
It you can do arrays in EL you can do the rest. Overall arrays are not
hard at all.
You basically write a  pointer to point to the right cell. Actually two
pointers, for
rows and columns. I think I have some sample code on 2D array writing,
sorting,
appending, printing. Let me know if interested. I can dig it out for you.
This will
basically tell you all you need to know about 2D arrays in one EL study.
I personally use arrays in my work, for instance in my Statistical module
to
capture the statistical footprint of the market. Works well. Takes a var,
accumulates its frequency distribution, calculates density, stores it,
sorts it,
does min, max, mean, median, range, std, etc., stores'em, appends to an
ascii file and
prints to a print log. So you aint the only one doing the arrays.
Val.

Bob Hunt wrote:

> I posted a question on this forum last week concerning
> multi-dimensional arrays, and didn't get one single response.
>
> Has this turned into an omega-bashing only list? . . . I hope not.
>
> Anyhow, I spent some time over the weekend looking a little closer at
> my array needs here, and I'm now thinking that my programming
> requirements are just too vast for EL to handle. I've worked with EL
> ever since purchasing TS almost four years ago, and this is the first
> time this has happened. I'm not a programmer, but I'm willing and
> fully capable of learning. I'm just wondering what my next step should
> be? I don't want to read a vast number of books before being able to
> program this. I'd like to study some rudimentary things, enough to get
> me started and then learn along the way.
>
> Perhaps a quick description of my needs might help those more
> experienced point me in the right direction;
>
> I have constructed, in EL, an analysis which produces a data series in
> which each data point is classified in four different ways. In terms
> of an EL array, it would look like this:  Array[9,9,1000,5]   I soon
> found out that EL can't handle something this size.
>
> Once that Array is calculated, I need to sort the resultant data
> according to those four characteristics and then perform some simple
> calculations on that sorted data for plotting.
>
> That's the nuts & bolts of what I need to do.  Anybody have any
> suggestions for my next step?
>
> Thanks in advance,
> Bob Hunt