If by tabulate you mean to list the change then
the code does that. If you mean a running total of the
changes then use ---
filter = ...;
pricechange = ...;
totalpricechange =
cum(pricechange);
addcolumn(pricechange,
...);
addcolumn(totalpricechange,
...);
Bill
----- Original Message -----
Sent: Monday, June 11, 2007 6:52
AM
Subject: Re: [amibroker] Stuck in a
loop
Thank you Bill and Graham for your
response.
Unfortunately the code you provided partly
helps my task.
I need to tabulate (addcolumn) historical
price change of a single stock using "Explore/Current Symbol
within AA.
Charting of this information works
great.
Thanks again for your help
Regards
----- Original Message -----
Sent: Monday, June 11, 2007 1:49
AM
Subject: Re: [amibroker] Stuck in
a loop
Just explore over the bars/dates you want
PriceChange = C -
O;
filter=1;
AddColumn(PriceChange, " Price Range ", 1,
colorRed);
--
Cheers
Graham
AB-Write ><
Professional AFL Writing Service
Yes, I write AFL code to your
requirements
http://www.aflwriting.com
On
11/06/07, ted <optionted@xxxxxxxxxt.com>
wrote:
> Hello all
>
> Is it possible to display the
historical price change of a single
> stock.
> Unable to
loop out this information from the array.
>
>
>
Thanking in anticipation
>
>
>
>
>
Filter = 1;
>
>
//--------------------------------------------------
>
>
DayO = O;
> DayC = C;
>
>
MyArray[1]=0;
>
> for (i=1;
i<=LastValue(BarIndex()); i++)
> {
>
>
PriceChange[i] = DayC[i] - DayO[i];
>
>
}
>
> AddColumn(PriceChange, " Price Range ", 1,
colorRed);
>
>
>
>
>
> 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 NEW RELEASE
ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
>
>
For other support material please check also:
> http://www.amibroker.com/support.html
>
>
Yahoo! Groups Links
>
>
>
>
No virus found in this incoming message.
Checked by AVG Free
Edition.
Version: 7.5.472 / Virus Database: 269.8.13/843 - Release
Date: 6/10/2007 1:39 PM