No function needed. Just try this and run Optimize in AA instead of
Backtest:

 

Optimize("EntryBars", 15, 1, 100, 1); //15 is used for your chart and for
backtest.

                                       //I usually change it back to Param
after Optimizing.

 

PS: You had a semi-colon; after your brace}

This is not needed.

--

Terry

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of James
Sent: Thursday, February 01, 2007 12:21
To: [email protected]
Subject: [amibroker] ParamOptimize - syntax help

 

Could someone help me with the syntax for ParamOptimize? It is not really in
the function guide, just a comment by TJ under optimize. Here is the stated
syntax:

 

function ParamOptimize( name, default, minv, maxv, step )
{
return Optimize( name, 
Param( name, default, minv, maxv, step ),
minv, maxv, step );
}

Here are the 2 statements I am trying to combine:

 

//EntryBars = Param("Entry Bars", 15, 1, 100, 1);

//EntryBars = Optimize("Entry Bars", 15, 1, 100, 1);

 

And here is where I stand right now:

 

function ParamOptimize( EntryBars, 15, 1, 100, 1)

{return Optimize (EntryBars, Param EntryBars, 15, 1, 100, 1),1, 100, 1);};

 

which is not working. I have tried variations but obviously 

I am not a programmer.

 

Thank you,

James

 

  _____  

Now that's room service! Choose
<http://travel.yahoo.com/hotelsearchpage;_ylc=X3oDMTFtaTIzNXVjBF9TAzk3NDA3NT
g5BF9zAzI3MTk0ODEEcG9zAzIEc2VjA21haWx0YWdsaW5lBHNsawNxMS0wNw--%0d%0a>  from
over 150,000 hotels 
in 45,000 destinations on Yahoo! Travel to find your fit.  

Reply via email to