n = optimize("n_order", 0, 0, 4, 1); // n is used
to stored the order
x = strtonum(strextract("20, 25, 50, 70, 200", n); // x
= is the n-1th element
result = ma(c, x); //or whatever
From: amibroker@xxxxxxxxxxxxxxx
[mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Keith
McCombs Sent: Thursday, 15 March 2007 12:44 PM To:
amibroker@xxxxxxxxxxxxxxx Subject: Re: [amibroker] How to Optimise
for specific values
Dingo and/or Paul --
Sorry, but could you please dumb it down so even I can see how this works
with Optimize()? A code snippet including Optimize() and StrToNum(StrExtract("20,25,50,70,200",
n)) ought to do it.
Thanks. -- Keith
dingo
wrote:
the key is the strExtract function. The strToNum merely
converts the alfa result to a number.
d
From: amibroker@xxxxxxxxxps.com [mailto:amibroker@yahoogroups.com]
On Behalf Of Keith McCombs Sent: Wednesday, March 14,
2007 12:12 PM To:
amibroker@xxxxxxxxxps.com Subject: Re: [amibroker] How to
Optimise for specific values
Paul -- Could you please give
more detail as to how StrToNum() function is applicable to the original
Optimize() question? -- Keith
Paul Ho wrote:
StrToNum(StrExtract("20,25,50,70,200",
n))
From: amibroker@xxxxxxxxxps.com
[mailto:amibroker@yahoogroups.com]
On Behalf Of dralexchambers Sent: Wednesday, 14 March
2007 3:15 AM To:
amibroker@xxxxxxxxxps.com Subject: [amibroker] How to
Optimise for specific values
How do I do this:
Optimise the MA for the specific
values:
20,25,50,70,200
Optimise(MAval,"MA
value",20,20,200,5) >>> this loops in Step 5 and I
only want the specific values above tested
Thanks in
advance -
ALex
__._,_.___
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