you have answered your own question var = valuewhen(signal1, C);
In AB you do not need to pre-define array variable names -- Cheers Graham AB-Write >< Professional AFL Writing Service Yes, I write AFL code to your requirements http://www.aflwriting.com On 30/01/07, Jerry Laster <[EMAIL PROTECTED]> wrote: > Yes, ma, c, H, etc. are built-in arrays. But I am trying to create > and array with other data, ie. > valuewhen(signal1, C) > I want to create an array with all the values of the close when > signal1 was true. > in other languages I would dim myarray as array, and then populate it > with every value of C when signal1 is true. > Jerry. > > --- In [email protected], Graham <[EMAIL PROTECTED]> wrote: > > > > what array did you ahve in mind? > > > > example moving average is an array > > myMA = ma(c,10); > > > > -- > > Cheers > > Graham > > AB-Write >< Professional AFL Writing Service > > Yes, I write AFL code to your requirements > > http://www.aflwriting.com > > > > > > On 30/01/07, Jerry Laster <[EMAIL PROTECTED]> wrote: > > > Hi, > > > How do you go creating your own array? In other languages you can > > > create an array an populate it. I can't find how to do it in AFL. > > > Thank, > > > Jerry > > > > > > > > > > > > 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 > > > > > > > > > > > > > > > > > > > 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 > > > >
