PureBytes Links
Trading Reference Links
|
Thanks for the creative ideas, Steve. I'll figure out what to do over
the weekend.
--- In amibroker@xxxxxxxxxxxxxxx, "Steve Dugas" <sjdugas@xxxx> wrote:
> Sounds like a plan! It probably wouldn't be too hard using the
built-in file
> and num/string conversion functions.
>
> Of course, I don't know what you are doing or how many ints you
need, but
> here are a couple of other thoughts:
>
> 1. Use static variables - allocated when AB starts, deallocated
when AB
> shuts down.
> 2. Create a variable, populate it with Cum(1), and access it via
looping
> code.
> 3. Create a dummy ticker and fill it with steadily incrementing
numbers -
> then it would always be saved to disk and you could access it
through the
> Foreign function.
>
> Just more or less thinking out loud here...
>
> Steve
>
> ----- Original Message -----
> From: "hoolee0820" <hoolee0820@xxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Friday, July 15, 2005 1:33 PM
> Subject: [amibroker] Re: Unique ID value
>
>
> > Thank you Steve, but Random # could be repeated, no quarantee it
is
> > unique.
> >
> > Maybe only way is to save a number to the harddisk, and retrive
and
> > add 1 and save again for later...
> >
> >
> > --- In amibroker@xxxxxxxxxxxxxxx, "Steve Dugas" <sjdugas@xxxx>
wrote:
> >> Hi,
> >>
> >> Random() function will generate a floating point number between
> > zero and
> >> one. I think AB keeps track of numbers with 7 or 8 digit
precison,
> > so maybe
> >> something like this would work for you?
> >>
> >> UniqueInt = Int( Random() * 1000000 );
> >>
> >> Steve
> >>
> >> ----- Original Message -----
> >> From: "hoolee0820" <hoolee0820@xxxx>
> >> To: <amibroker@xxxxxxxxxxxxxxx>
> >> Sent: Friday, July 15, 2005 11:45 AM
> >> Subject: [amibroker] Re: Unique ID value
> >>
> >>
> >> > Thanks, I'm aware of those functions. I ask around so that I
don't
> >> > need to "re-invent the wheel".
> >> >
> >> >
> >> > --- In amibroker@xxxxxxxxxxxxxxx, "mrdavis9" <mrdavis9@xxxx>
> > wrote:
> >> >> Maybe you can be creative and use one or more of these math
> >> > functions . Ron
> >> >> D
> >> >>
> >> >> Math functions
> >> >>
> >> >> a.. abs - absolute value
> >> >> b.. atan - arc tan
> >> >> c.. CEIL - ceil value
> >> >> d.. COS - cosine
> >> >> e.. EXP - exponential function
> >> >> f.. FLOOR - floor value
> >> >> g.. FRAC - fractional part
> >> >> h.. INT - integer part
> >> >> i.. LOG - natural logarithm
> >> >> j.. LOG10 - decimal logarithm
> >> >> k.. MAX - maximum value of two numbers / arrays
> >> >> l.. MIN - minimum value of two numbers / arrays
> >> >> m.. PREC - adjust number of decimal points of floating point
> >> > number
> >> >> n.. ROUND - round number to nearest integer
> >> >> o.. sign - returns the sign of the number/array (AFL 2.50)
> >> >> p.. SIN - sine function
> >> >> q.. SQRT - square root
> >> >> r.. tan - tangent function (AFL 1.0)
> >> >> ----- Original Message -----
> >> >> From: "hoolee0820" <hoolee0820@xxxx>
> >> >> To: <amibroker@xxxxxxxxxxxxxxx>
> >> >> Sent: Friday, July 15, 2005 3:02 AM
> >> >> Subject: [amibroker] Unique ID value
> >> >>
> >> >>
> >> >> > Hello,
> >> >> >
> >> >> > I need to generate a less than 10 digits unique integer,
anyone
> >> > has an
> >> >> > idea?
> >> >> >
> >> >> > Thanks,
> >> >> >
> >> >> > HL
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> > 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 other support material please check also:
> >> >> > http://www.amibroker.com/support.html
> >> >> >
> >> >> >
> >> >> > Yahoo! Groups Links
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> > --
> >> >> > No virus found in this incoming message.
> >> >> > Checked by AVG Anti-Virus.
> >> >> > Version: 7.0.323 / Virus Database: 267.8.15/49 - Release
Date:
> >> > 7/14/2005
> >> >> >
> >> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > 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 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 other support material please check also:
> > http://www.amibroker.com/support.html
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/DldnlA/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~->
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 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/
<*> 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/
|