PureBytes Links
Trading Reference Links
|
Thanks for clearing that up
I was going nuts trying to figure it out
Rick
--- wlandry01 <wlandry01@xxxxxxxxx> wrote:
> Rick,
>
> I ran the code that you included and got a blank
> column.
> Upon checking the code, I noticed a space between
> stocknum and " in the line:
>
> if(Status("stocknum ") == 0)
>
> When I deleted the space and ran the code, the
> output column
> shows a "1" in each line entry.
>
> I've noticed that random spaces show up in text
> copied from the
> Yahoo forum. Normally I can find these easily with
> the
> "verify syntax" button in the formula builder but
> this particular
> spacing didn't show up for some reason.
>
>
> Wayne
>
>
>
> --- In amibroker@xxxxxxxxxxxxxxx, Rick Osborn
> <ricko@xxx> wrote:
> >
> > Ran it on the NAS 100 stocks in AA and still
> blank.
> >
> > Her is the code again - in case I got it wrong
> > 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) ;
> >
> > Rick
> >
> > --- trb0428 <tombrowne34@xxx> wrote:
> >
> > > Rick,
> > >
> > > Make sure you are running this over a group of
> > > symbols as an
> > > exploration from the AA window and it will
> work.....
> > >
> > > regards,
> > > Tom
> > >
> > > --- In amibroker@xxxxxxxxxxxxxxx, Rick Osborn
> > > <ricko@> wrote:
> > > >
> > > > When I run the code I get blanks in the
> "counter"
> > > > column.
> > > >
> > > > Is there a setting I need to change perhaps?
> > > >
> > > > Rick
> > > >
> > > > --- Yuki Taga <yukitaga@> wrote:
> > > >
> > > > > Hi Tom,
> > > > >
> > > > > This works very nicely, as long as I take
> out
> > > the
> > > > >
> > > > > Buy=Filter=1 statement,
> > > > >
> > > > > and use my own exclusionary filter. It
> returns
> > > just
> > > > > what I want, and
> > > > > consecutively numbers the rows.
> > > > >
> > > > > Many thanks,
> > > > >
> > > > > Yuki
> > > > >
> > > > > Friday, January 5, 2007, 4:27:00 PM, you
> wrote:
> > > > >
> > > > > t> Yuki,
> > > > >
> > > > > t> Try this:
> > > > > t>
> > > > >
> > >
> ---------------------------------------------------
> > > > > t> counter = 0;
> > > > > t> if(Status("stocknum") == 0)
> > > > > t> StaticVarSet("string",0);
> > > > >
> > > > > t> Buy=Filter= 1;
> > > > >
> > > > > t> counter = StaticVarGet("string");
> > > > >
> > > > > t> if(LastValue(Filter))
> > > > > t> {
> > > > > t> counter++;
> > > > > t> StaticVarSet("string",counter);
> > > > > t> }
> > > > >
> > > > > t> AddColumn(counter,
> "counter",1.2,colorBlue);
> > > > >
> > > > > t> regards,
> > > > > t> Tom
> > > > >
> > > > >
> > > > >
> > > > > t> --- In amibroker@xxxxxxxxxxxxxxx, Yuki
> Taga
> > > > > <yukitaga@> 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
> > > > > >>
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > Best,
> > > > >
> > > > > 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.7/618 - Release Date: 1/6/2007 7:47 PM
|