PureBytes Links
Trading Reference Links
|
Thank
you Tomasz,
I was
hoping for a simpler way, this gets confusing when using more than 2
variables.
best
regards,
<SPAN
class=100182901-23102002>Herman.
<BLOCKQUOTE
>
<FONT face=Tahoma
size=2>-----Original Message-----From: Tomasz Janeczko
[mailto:amibroker@xxxx]Sent: 21 October, 2002 1:18
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: Re: [amibroker]
Status("OptimizationNum")?
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 van den
Bergen
To: <A
href=""
title=amibroker@xxxxxxxxxxxxxxx>Amibroker@xxxx Com
Sent: Monday, October 21, 2002 3:34
PM
Subject: [amibroker]
Status("OptimizationNum")?
<SPAN
class=270292313-21102002>Hello,
<SPAN
class=270292313-21102002>
wouldanybody
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.
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.
|