Thanks Dennis;
I just want to make sure that I have the OrderID's available if I 
need to restart amibroker or have to re-boot.  I think in this case 
I'll use single files to store the three orderid's of the bracket 
order I place.  Thanks for the help, great description of the use of 
both.  At this moment I'll just work with the orderid's since I 
can't think of any other reason to complicate things.  I like simple 
as it leads to less problems....usually :)

Another Brian


--- In [email protected], Dennis Brown <[EMAIL PROTECTED]> wrote:
>
> Hi Brian,
> 
> Either approach can work.  The choice really comes dow to how you 
want  
> to organize your data.  In my case, I used separate files for 
storing  
> individual params in my Flexible Parameters scheme.  That gave me 
the  
> ability to address each individually and add new ones or change 
values  
> without needing to search through a secondary indexing scheme 
inside  
> one file.
> 
> In my case, I use both static variables and individual files.  I 
load  
> up the static vars (which have a limited lifetime of one 
instance)  
> from the files when I start up, then use static variables from 
that  
> point on.  However, if I write to a static variable, I also write  
> through to the file.  I do this for speed since a static variable 
does  
> not require a system call.
> 
> Consider what you want to do with the data.  If it is just 
logging,  
> then perhaps a single file.  If you want to do a lot of sorting 
and  
> searching, then perhaps one file.  If you just want random access 
to  
> any one entry, then perhaps individual files.
> 
> BR,
> Dennis
> 
> 
> On Jul 26, 2008, at 6:25 PM, treatmentinprogress wrote:
> 
> > This is a fantastic post:
> > http://www.amibroker.org/userkb/2007/04/24/persistent-variables/
> >
> > I'm about to embark on storing the orderid's in a file.
> >
> > I have two basic questions / assumptions before I begin.
> >
> > what are the advantages/disadvantages to using a single file 
with a
> > list of orderid's rather than a seperate file for each orderid?
> >
> > If you store the orderids in a file, than I'm guessing we don't 
need
> > to use a static variable (staticvarset) since we can just use the
> > persistent variable in the file?
> >
> >
> > Another Brian
>


Reply via email to