PureBytes Links
Trading Reference Links
|
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 amibroker@xxxxxxxxxxxxxxx, Dennis Brown <see3d@xxx> 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
>
------------------------------------
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/
|