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

[amibroker] need help in optimizing



PureBytes Links

Trading Reference Links

The following script takes 20 minutes to execute when i set the scan 
to last 1 day only. When i broke down the factors into multiple 
pieces,
i found that the following line adds 15 minutes to the scan times.  
how can i optimize it so it runs faster

ChkWatchlist=InWatchList(CategoryFind("Watchlist A", 
categoryWatchlist )) OR InWatchList(CategoryFind("BuyMA", 
categoryWatchlist )) OR  InWatchList(CategoryFind("Congestion", 
categoryWatchlist )) OR  InWatchList(CategoryFind
("Breakout_continueation", categoryWatchlist ));




-- The actual script that i ran.

yestprice=Ref(High,-1);
ChkWatchlist=InWatchList(CategoryFind("Watchlist A", 
categoryWatchlist )) OR InWatchList(CategoryFind("BuyMA", 
categoryWatchlist )) OR  InWatchList(CategoryFind("Congestion", 
categoryWatchlist )) OR  InWatchList(CategoryFind
("Breakout_continueation", categoryWatchlist ));
Buy=(High>HHV(yestprice,180) AND Close<25) AND MA(V,20)>200000  AND 
(ChkWatchlist==0);
//Buy=High>HHV(yestprice,180) ;
Filter=Buy;

Thanks seede




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/