PureBytes Links
Trading Reference Links
|
Herman,
No such variable however you can calculate
it:
minx = 5;
maxx = 20;
stepx = 2;
miny = 1;
maxy = 10;
stepy = 1;
x = optimize( "x", minx, minx, maxx, stepx );
y = optimize( "y", miny, miny, maxy, stepy
);
optnum = ( x-minx )/stepx + ( y - miny ) * (maxx -
minx )/(stepx * stepy);
Best regards,Tomasz Janeczkoamibroker.com
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
Herman vanden
Bergen
To: <A title=amibroker@xxxxxxxxxx
href="">Amibroker@xxxx Com
Sent: Monday, October 21, 2002 3:34
PM
Subject: [amibroker]
Status("OptimizationNum")?
<SPAN
class=270292313-21102002>Hello,
<SPAN
class=270292313-21102002>
would anybody know
how to count optimizations such that we can use the counter in the
optimization itself?
<SPAN
class=270292313-21102002>
For example: X =
Optimize("X",5,1,10,1); <SPAN
class=270292313-21102002>Since here we have a single variable the
counter is simply X. However When Optimizing with 2 or more
variables with odd limits this gets messy, especially when you want to make
the formula generic for use in different systems.
<SPAN
class=270292313-21102002>
Something like
Status("OptimizationNum"); would be nice, similar to
"StockNum".
<SPAN
class=270292313-21102002>
Thanks for any
ideas you may have,
best
regards,
<SPAN
class=270292313-21102002>Herman.Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
|