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

[amibroker] Re: Are dynamic arrays possible in AB?



PureBytes Links

Trading Reference Links

Ara,

Thanks....I will give it a try.

regards,
Tom

--- In amibroker@xxxxxxxxxxxxxxx, "Ara Kaloustian" <ara1@xxx> wrote:
>
> Tom
> 
> You can certainly store data inan array element by element
> 
> MyArray[0] = dataelement1;
> MyArray[1] = dataelement2;
> MyArray[2] = dataelement3;
> etc
> 
> Plot(MyArray,....);
> 
> if you put your dataelements in dynamic variables first, then you 
can put 
> them in an array easily
> 
> for (i=0; i<maxelement; i++)
> {
> MyArray[i] = VarGet(VarName);
> }
> 
> 
> 
> 
> ----- Original Message ----- 
> From: "trb0428" <tombrowne34@xxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Wednesday, January 10, 2007 1:29 PM
> Subject: [amibroker] Re: Are dynamic arrays possible in AB?
> 
> 
> > Ara,
> >
> > My goal is to plot the data. I do not see how I can use this
> > structure to plot? Is there a way to store this element by element
> > data into an artificial ticker symbol. I have thought of
> > impplementations using ATC but cannot arrive at a solution this 
way???
> > Is there any other way to store this data?
> >
> > Thanks for your suggestions.
> >
> > regards,
> > Tom
> >
> >
> > --- In amibroker@xxxxxxxxxxxxxxx, "Ara Kaloustian" <ara1@> wrote:
> >>
> >> Use VarSet() and VarGet() functions. These are non array 
elements,
> > but you
> >> can create them dynamically so you can set and read them in a 
loop
> > as array
> >> elements.
> >>
> >> for (i=1; i<10; i++)
> >> {
> >> //create element name
> >> Array_element = "Arr_item" + i;
> >> VarSet(Array_element,desired_value);
> >> }
> >>
> >> x = VarGet("Arr_item1");
> >>
> >> ----- Original Message ----- 
> >> From: "trb0428" <tombrowne34@>
> >> To: <amibroker@xxxxxxxxxxxxxxx>
> >> Sent: Tuesday, January 09, 2007 1:39 PM
> >> Subject: [amibroker] Are dynamic arrays possible in AB?
> >>
> >>
> >> > Hi,
> >> >
> >> > I have a need to create arrays dynamically. Is this possible? I
> > have
> >> > tried several ways including the following but without success:
> >> >
> >> >
> >> > for (n = 0; n<= tickers-1; n++)
> >> >    {
> >> >
> >> >       for( j = period-1; j <= BarCount-1; j++)
> >> >          {
> >> >
> >> >             ID[j] = osTabGet( n, 2 * j + 2, mytable );
> >> >
> >> >           }
> >> >        myarray = "ID"+n;
> >> >        myarray = ID;
> >> >    }
> >> >
> >> > Tom
> >> >
> >> >
> >> >
> >> > 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.16.9/622 - Release Date: 1/10/2007 2:52 PM