PureBytes Links
Trading Reference Links
|
Normally you can't. But there are two ways how to overcome this limitation:
1. Use this function:
function ParamOptimize( Titlename, defaultvar, minv, maxv, step )
{
return Optimize( Titlename,
Param( Titlename, defaultvar, minv, maxv, step ),
minv, maxv, step );
};
and use it in your formulas with #include <Paramoptimize.afl>
2. Always duplicate the lines where you defined the variables to be optimised
and replace Param with Optimize, e.g.
n = Param("Periods",8,5,50,1);
n = Optimize("Periods",n,5,50,1);
av = Param("Average",5,2,20,1);
av = Optimize("Average",av,2,20,1);
With both methods you can click the Param button in the AA window and adjust
the parameters accordning to your optimized values.
Greetings, Thomas
> How can I backtest the optimized variables without going into script
> and hardcoding the optimized variables into the buy/sell?
>
>
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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
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/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> 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/
|