Yuki,
Try this:
---------------------------------------------------
counter = 0;
if(Status("stocknum") == 0)
StaticVarSet("string",0);
Buy=Filter= 1;
counter = StaticVarGet("string");
if(LastValue(Filter))
{
counter++;
StaticVarSet("string",counter);
}
AddColumn(counter, "counter",1.2,colorBlue);
regards,
Tom
--- In [email protected], Yuki Taga <[EMAIL PROTECTED]> 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
>