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

Re: Array of Data2



PureBytes Links

Trading Reference Links

> It is extremely unusual to refer to previous values of an array.  I make it
> a practice to find an alternative solution as the size of the array is
> immediately multiplied by the value of MaxBarsBack.  An array declared with
> 20 elements and MaxBarsBack of 50 jumps from 21 cells to 1050 cells.  It
> can instantly take up an unconscionable amount of memory.

Sam, just to clarify: are you saying as long as I don't refer to a
previous value of an array (eg, A[i][1]), then Tradestation will only
allocate a single copy of the array, and thus avoid the multiplication
of its size by MAXBARSBACK?  Is this also true of a 'var' declarations?


-- 
--
| Gary Funck,  Intrepid Technology, gary@xxxxxxxxxxxx, (650) 964-8135