PureBytes Links
Trading Reference Links
|
AB works better when integers aer used in optimization due to rounding
issues.
Suggest using:
somevariable = Optimize("somevariable", 95, 93, 97, 01);
myvariable = somevariable / 100;
----- Original Message -----
From: "intermilan04" <intermilan04@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Saturday, April 29, 2006 5:31 PM
Subject: [amibroker] Minor bug with Optimize statement?
> Tomasz,
>
> I think I've discovered a minor bug. Nothing serious though. Here is
> the detail:
>
> OS: Windows XP
> Amibroker Version: 4.80.1 (I've witnessed the same issue with 4.75.3)
> CPU: Athlon XP 2500+
> Mem: Corsair 512*2
>
> When I try to optimize my variable with a statement like below,
>
> somevariable = Optimize("somevariable", 0.95, 0.93, 0.97, 0.01);
>
> for some reason Amibroker only evaluates from 0.93~0.96, and misses
> out on the last iteration. I've seen this to occur quite frequently,
> but only when I'm evaluating with decimal points involved. My
> workaround is simply to increase the upper limit by one unit, i.e. in
> the example above I'd use 0.98 instead of 0.97. So yeah, I do not
> think it's a major bug but seems like a bug to me nonetheless.
>
> I apologize if this problem has already been covered elsewhere.
>
> Regards,
>
> intermilan04
>
>
>
>
>
>
> 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 --------------------~-->
GFT Forex Trading Accounts As low as $250 with up to 400:1 Leverage. Free Demo.
http://us.click.yahoo.com/lpv1TA/jlQNAA/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/
|