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

[amibroker] Re: Optimizing



PureBytes Links

Trading Reference Links

If i add "firstma<secondma" to my buy condition, i get many blank 
results, but its still take time to calculate. 

Buy = iif(firstma<secondma,MA(C,firstma)>MA(C,secondma),0); 

How to set optimizing values so tester will not even try to 
calculate when firstma bigger than secondma?


--- In amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxxx> wrote:
> just add the conditions that you require to your Buy statement
> 
> On 6/28/05, andreyoffline <offline@xxxx> wrote:
> > Lets say I have system based on Moving Avarage crosses. I want to
> > optimize periods lengths, but i dont want to test buy signals 
when
> > slow MA above fast MA.
> > 
> > firstma = Optimize("First MA", 10, 3, 50 ,1);
> > secondma = Optimize("Second MA", 30, 9, 150 ,1);
> > 
> > How can i resolve this problem?
> > 
> > 
> > 
> > 
> > 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 other support material please check also:
> > http://www.amibroker.com/support.html
> > 
> > 
> > Yahoo! Groups Links
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> 
> 
> -- 
> Cheers
> Graham
> http://e-wire.net.au/~eb_kavan/




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 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/

<*> 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/