James,
Put the code I given ON THE TOP of your formula:
function ParamOptimize( name, default, minv, maxv, step )
{
return Optimize( name, Param( name, default, minv, maxv, step ), minv, maxv,
step );
}
Then just call it as you would do with built-in functions:
EntryBars =
the word name can give you errors within the function definition as name
is used ofr function already Name()
Change this to something else
--
Cheers
Graham
AB-Write Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://www.aflwriting.com
On 02/02/07, Tomasz
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