PureBytes Links
Trading Reference Links
|
Thanks
Steve!<FONT color=#0000ff
face=Arial size=2>that is what i have been using, like so:
//Optimization VariablesX1 = 1;X2 =
10; X = Optimize("Pd1", 4, X1, X2, 1);Y1 = 1;Y2 = 10; Y = Optimize("Pd2", 3,
Y1, Y2, 1);IC = (X-X1)+(Y-Y1)+(X2-X1)*(Y-Y1)+1; //Iteration Count
The problem is that i want my code to
be portable between systems, unless I rename everything consistant (<SPAN
class=250422519-21102002>which makes code unreadable) this is difficult.
When using 3 variables it gets even more messy :-(
Thank you for your input!
Herman.
<BLOCKQUOTE
>
<FONT face=Tahoma
size=2>-----Original Message-----From: Steve Davis
[mailto:_sdavis@xxxx]Sent: 21 October, 2002 2:49
AMTo: amibroker@xxxxxxxxxxxxxxxSubject: RE: [amibroker]
Status("OptimizationNum")?
<FONT color=#0000ff face=Arial
size=2>Herman,
<FONT color=#0000ff face=Arial
size=2>
You
could try something like this for simple optimizations.
<FONT color=#0000ff face=Arial
size=2>
<FONT color=#0000ff face="Courier New"
size=2>X = Optimize("X", 1, 1, 5, 1);Y = Optimize("Y", 1, 1, 3,
1);OptimizationNum = X + 5*(Y-1);
<FONT color=#0000ff face=Arial
size=2>
But
you are right, it gets messy with non-trivial examples.
<FONT color=#0000ff face=Arial
size=2>
<FONT color=#0000ff face=Arial
size=2>-Steve
<FONT color=#0000ff face=Arial
size=2>
-----Original Message-----From:
Herman van den Bergen [mailto:psytek@xxxx]Sent: Monday,
October 21, 2002 9:34 AMTo: Amibroker@xxxx
ComSubject: [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.
|