one way to do this would be: yourArray = IIF(signal1,C,Null);
rgds, Ed ----- Original Message ----- From: Jerry Laster To: [email protected] Sent: Monday, January 29, 2007 9:09 PM Subject: [amibroker] Re: Creating Arrays 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 > > > > > > > > >
