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

Re: [amibroker] Arrays handling



PureBytes Links

Trading Reference Links

Hello,

Currenly all AFL arrays are setup so they have equal length (equal to number
of data points available for given symbol)

This is essential to enable them to match with price arrays.
This way given array element refers to the same date/time
as in other array. So 70th element of your custom array x[ 70 ]
refers to 70th bar of Close array and they both represent
value at given date.

If they were not one would never be sure if shorter array
refers to FIRST or LAST part of price array (or maybe some
part in the middle).


Best regards,
Tomasz Janeczko
amibroker.com

----- Original Message ----- 
From: "Listes trading" <listes.trading@xxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Thursday, May 01, 2003 6:10 PM
Subject: [amibroker] Arrays handling


> Tomasz
> 
> I am playing a little bit with loops and I encounters the following problem.
> In AFL , all arrays have the length of the current price array and this
> causes some troubles.
> Example:
> for(i=1; i<=100; i++)
> {
> X[i} = i;
> }
> mini = lowest(X);
> last = lastvalue(X);
> 
> I would expect to have mini = 1 and last=100
> Unfortunately, AFL stores the values from 1 to 100 in the first one hundred
> elements of the array and then pads with 0.
> This causes the results to be mini =0 and last=0.
> How to handle this kind of situation?
> Would it be possible to add the capability to define array with length
> different than the price array?
> 
> Waz
> 
> 
> 
> Send BUG REPORTS to bugs@xxxxxxxxxxxxx
> Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> 
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
> 
> 

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make Money Online Auctions! Make $500.00 or We Will Give You Thirty Dollars for Trying!
http://us.click.yahoo.com/KXUxcA/fNtFAA/uetFAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/