Arrays are collections of values of a certain data type, such as a collection of numbers or dates.
The Quagensia® Desktop Application makes it easy to create and use both single-dimensional arrays and multi-dimensional arrays.
A one-dimensional array is a simple list of items. You can use one-dimensional arrays for a wide variety of needs, from storing a large list of earnings dates on which you want to avoid trading to storing a large list of price levels at which you want to submit buy or sell orders.
A two-dimensional array is a two-dimensional table of items, for example an array of numbers with X and Y coordinates, or a chess board with a number, date, piece of text, or value of another data type in each square.
A three-dimensional array is a three-dimensional rectangular prism of values, for example an array of numbers with X, Y, and Z coordinates.
A four-dimensional array is more difficult to visualize, but can be used for storing the logical equivalent of a list of three-dimensional arrays with the same dimension sizes as each other, such as a list of three-dimensional arrays whose dimension sizes are 5, 20, and 100.
It is usually better to use a list instead of a one-dimensional array unless you need to use certain functions that Quagensia makes available only for arrays or you need to integrate with external code that uses arrays. The number one reason to use a list instead of a single-dimensional array is that your code should perform better, i.e. run faster and use less of your computer’s resources, if you need to add or remove items from a very large list. The larger the list and the more frequently you need to add or remove items, the more important it is to use a list instead of a single-dimensional array. Note that there is no list equivalent to a multi-dimensional array, so if you need multi-dimensional functionality you will need to use an array instead of a list.
To learn more about using this feature, either press the F1 key with your mouse pointer over any item, or place your mouse pointer over either the label next to any editable field or the icon in the right or upper right of any item and a tooltip will appear.