[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: Optimising several symbols at once question



PureBytes Links

Trading Reference Links

Thanks - and sorry for my late reply. I've been away.

I have about 30 symbols to optimise. I could type their names in as 
in reply # 2, but it would be time consuming.

I only want to apply one set of Optimisation parameters to the whole 
lot, so, eg:

Optimise all symbols with DMI from 2 to 10;

And the results would show:

Symbol 1, DMI optimal = 6
Symbol 2, DMI optimal = 8

etc....

How would I do this?

Alex


--- In amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxx> wrote:
>
> Here are a few methods to show different values for variables per 
symbol
> 
> DmiOptimalLength = 10; MaOptimalLength = 15; // defaults
> if(Name()=="GBPUSD") {DmiOptimalLength = 6; MaOptimalLength = 10;}
> if(Name()=="EURUSD") {DmiOptimalLength = 8; MaOptimalLength = 20;}
> 
> IF can be used because the condition variable is not an array
> 
> You cna also use
> DmiOptimalLength = iif(Name()=="GBPUSD",6, if(Name()=="EURUSD", 8, 
10));
> MaOptimalLength = iif(Name()=="GBPUSD",8, if(Name()=="EURUSD", 20, 
15));
> 
> or this but all symbols need to be listed
> DmiOptimalLength = (Name()=="GBPUSD")*6 + (Name()=="EURUSD")*8;
> MaOptimalLength = (Name()=="GBPUSD")*8 + (Name()=="EURUSD")*20;
> 
> 
> -- 
> Cheers
> Graham
> AB-Write >< Professional AFL Writing Service
> Yes, I write AFL code to your requirements
> http://www.aflwriting.com
> 
> 
> On 03/03/07, Keith McCombs <kmccombs@xxx> wrote:
> >
> >  Alex --
> > Why not just:
> > GBPUSD_DMI = Optimize("GBPUSD_DMI", 6, 1, 100, 1);
> > GBPUSD_MA = Optimize("GBPUSD_MA", 10, 1, 100, 1);
> > EURUSD_DMI = Optimize("EURUSD_DMI", 8, 1, 100, 1);
> > EURUSD_MA = Optimize("EURUSD_MA", 20, 1, 100, 1);
> >
> > Of course, you might not want to do this if your trying to 
optimize the
> > entire NYSE ;-)
> > -- Keith
> >
> > dralexchambers wrote:
> >
> >  Hi,
> >
> > Is it possible to optimise settings for several symbols in one go
> > like this:
> >
> > GBPUSD: DMI optimal length = 6, MA optimal length = 10
> > EURUSD: DMI optimal length = 8, MA optimal length = 20
> >
> > etc...
> >
> > Thanks - 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

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/