PureBytes Links
Trading Reference Links
|
Shouldn't be a problem to have an array have more elements then you
need ... I dod stuff like this all the time ... Memory is cheap ...
--- In amibroker@xxxxxxxxxxxxxxx, "Ton Sieverding"
<ton.sieverding@xxx> wrote:
>
> Thanks Fred. I understand that when I am creating an array based
upon a security, AB will give me an 'AB home made' array for this
security. There is no problem about. But I am not using data coming
from a security but creating my own time serie for let's say 'Modern
Portfolio Theory' ( Eff. Frontier ) and want to show the EF using the
created arrays with the GFX instructions. That's all ...
>
> Regards, Ton.
>
> ----- Original Message -----
> From: Fred
> To: amibroker@xxxxxxxxxxxxxxx
> Sent: Friday, June 15, 2007 6:41 PM
> Subject: [amibroker] Re: New file uploaded to amibroker
>
>
> If we are talking OUTSIDE of AB / AFL like in vbs etc ... yes it
does.
>
> Inside AFL it essentially does the same thing as well ...
However,
> you would also by default have available elements 12 i.e. [11]
> through the number of bars in the charted security. The simple
way
> to think of this is that AB is providing the DIMENSION statement
for
> you and it will contain the same number of elements that are in
the
> charted security and it will be aligned to the charted security.
> Hwever you can use whatever elements of the array you want ... If
for
> some reason that's only 1 through 10 then so be it.
>
> --- In amibroker@xxxxxxxxxxxxxxx, "Ton Sieverding"
> <ton.sieverding@> wrote:
> >
> > Correct about 11 elements of course. Quickie. Sorry for that.
But I
> still do not understand what the difference between the size of
an
> array and the number of elements in an array is. Forget AFL for a
> moment. When I create an array with one of the popular statements
> like DIMENSION MyArray(10) does not give me this the same result
as
> underneath mentioned For Loop ? I am probably missing
something ...
> >
> > Regards, Ton.
> >
> > ----- Original Message -----
> > From: gp_sydney
> > To: amibroker@xxxxxxxxxxxxxxx
> > Sent: Friday, June 15, 2007 12:04 PM
> > Subject: [amibroker] Re: New file uploaded to amibroker
> >
> >
> > > Isn't this the same as creating an array with 10 elements ?
> > > for (i = 0 ; i < 11; i++) MyArray[i] = 0;
> >
> > No, ignoring the fact it's actually 11 elements (ie. 0-10).
That's
> > just filling the first 11 elements of the array, it doesn't
> define the
> > size of the array. If you tried that on a chart that only had
five
> > bars, you'd get an array overflow error.
> >
> > > How about two dimensional arrays ?
> >
> > AFL doesn't directly have two-dimensional arrays, but I did see
> > something on the AB site once about effectively creating them
> using
> > the VarSet and VarGet functions. Looked pretty messy though.
> >
> > GP
> >
>
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
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|