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

[amibroker] Re: adding a counting column



PureBytes Links

Trading Reference Links

Yuki,

Does the following accomplish what you need?

Row=Cum(1);
AddColumn(Row,"Row",1.0);
Filter=1;


Wayne




--- In amibroker@xxxxxxxxxxxxxxx, Yuki Taga <yukitaga@xxx> wrote:
>
> This is probably very simple for all you natural-born coders out
> there, but not for me.
> 
> I want to add a column to an exploration (that part is easy enough),
> but I want to have that column simply return a '1' on the first row,
> then increment by 1 for each additional row.
> 
> AA output gives me the total number of rows of course, but sometimes
> I want to know where, say, the middle of the pack is, or the
> upper-third, or lower-third -- without having to count from the 
first
> row or the last row.
> 
> Anyone?
> 
> Yuki
>



Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.5/616 - Release Date: 1/4/2007 1:34 PM