This is just the introductory paragraph of a tutorial of
how AFL works. Don't let the commas throw you off if you're used to
dots denoting the decimal point. Go to Help Search and type in
Arrays.
|
|
Bar |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | |
| 1 | Open |
1,23 |
1,24 |
1,21 |
1,26 |
1,24 |
1,29 |
1,33 |
1,32 |
1,35 |
1,37 |
Understanding how AFL works
Introduction
One of most important aspects of AFL is that it is an array processing language. It operates on arrays (or rows/vectors) of data. This way of operation is quite similar to the way how popular spreadsheets work (like Microsoft Excel). Anyone familiar with MS Excel should have no trouble quickly picking up AFL. - In fact all the examples in this article were all created using MS Excel.
What is an Array?
An array is simply a list (or row) of values. In some books it may be referred to as a vector. Each numbered row of values in the example represents an individual array. Amibroker has stored in its database 6 arrays for each symbol. One for opening price, one for the low price, one for the high price, one for the closing price and one for volume (see the rows labelled 1-5 below) and one for open interest. These can be referenced in AFL as open, low, high, close, volume, openint or o, l, h, c, v, oi.
----- Original Message -----From: murthysureshSent: Tuesday, March 14, 2006 9:00 PMSubject: [amibroker] why is formula results stored in arrayI dont understand one fact.
CheckReady = if(ADX(period) >= 20) this fails becasue the adx is
returned as a array and not a number.
1. Why is the return value of the Adx function stored as a array. i
would expect the result to be a decimal number.
2. What is the best way to cast the array as a number?
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.html
SPONSORED LINKS
Investment management software Real estate investment software Investment property software Software support Real estate investment analysis software Investment software
YAHOO! GROUPS LINKS
- Visit your group "amibroker" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
