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

Re: [amibroker] Re: Creating Arrays



PureBytes Links

Trading Reference Links

one way to do this would be:

yourArray = IIF(signal1,C,Null);

rgds, Ed


  ----- Original Message ----- 
  From: Jerry Laster 
  To: amibroker@xxxxxxxxxxxxxxx 
  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 amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxx> 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 <laster@xxx> 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
  > >
  > >
  > >
  > >
  >



   
Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.12/655 - Release Date: 1/28/2007 1:12 PM