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

[amibroker] Re: Creating Arrays



PureBytes Links

Trading Reference Links

Thank guys. I will be testing this.

--- In amibroker@xxxxxxxxxxxxxxx, "Terry" <MagicTH@xxx> wrote:
>
> You are thinking like a programmer ;-)
> 
> AB arrays are computed "all at once". 
> 
> New values come in (new bars of data or updates to the current bar) 
and the
> array is adjusted to include the new values. You don't have to do 
anything
> in your code.
> 
> Technically, the entire array is simply recomputed with each new 
piece of
> data.
> 
> There are times when you need to write loops and they are available 
in
> various forms, but they are also much slower.
> --
> Terry
> 
> -----Original Message-----
> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] 
On Behalf
> Of Jerry Laster
> Sent: Monday, January 29, 2007 16:17
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Re: Creating Arrays
> 
> I think that that code would overwrite the value of yourarray with 
> each new signal1.
> I was thinking of something like 
> myarray = myarray+signal1. But that will not add a new element to 
the 
> array, just extend the value of the array.
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "Edward Pottasch" <empottasch@> 
> wrote:
> >
> > 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@> 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@> 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
>



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