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

RE: [amibroker] AmiBroker Performance Continued -- What Settings are Fastest?



PureBytes Links

Trading Reference Links

Joe,

 

Try a combination of CategoryGetSymbols and CategoryRemoveSymbol.   Use the code in the example code in CategoryGetSymbols and iterate through the symbols that are retrieved from the Watchlist.  For each symbol in the loop, call CategoryRemoveSymbol to remove that symbol from the watchlist.  For example, assuming that your target watchlist is “5”:

 

TargetListNum = 12;

list = CategoryGetSymbols( categoryWatchlist, TargetListNum  );

for( i = 0; ( sym = StrExtract( list, i ) ) != ""; i++ )
   {
      CategoryRemoveSymbol(sym, categoryWatchlist, TargetListNum  );
   }

Note – You can create this as a function and pass the List Num or you can create a Param and change it dynamically. 

 

Regards,

 

Dan.

 

 


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Joe Landry
Sent: Thursday, June 23, 2005 6:25 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] AmiBroker Performance Continued -- What Settings are Fastest?

 

B

Thanks for posting this, it is really useful and will circulate to our local group.

 

 If you're running these screens on a daily basis, is there a way "programatically" to

erase the subject watchlist, that is 'make empty'   so that you have a fresh set of tickers that meet

your criteria each time you run this code. 

 

Best regards

JOE

 

----- Original Message -----

From: b

Sent: Thursday, June 23, 2005 3:24 PM

Subject: RE: [amibroker] AmiBroker Performance Continued -- What Settings are Fastest?

 

Tomasz and others:

This is a very interesting and helpful discussion. I am
sure I speak for many others.

Since my current system is limited to 1.5 GB of RAM, I have
also used special watchlists to reduce the number of stocks
that AB needs so everything fits into RAM.

Here is a snip of AFL to give the idea how these watchlists
can be created. The key is to use "CUM" to find any stock
that needs to be in the watchlist.

Watch for line wrap problems when copying the code.

b

//----------------------------------------------
//For increased testing speed,
//it is helpful to group stocks into
//watchlists with minimum volume,
//and also by price ranges. Note, if a stock meets
//the criteria of a watchlist for even
//a single day, it is included in the watchlist.

// although I trade with 100k mininum vol, this uses
// 50k since 100k gives too few stocks prior to 1998

av50 = MA(V,5) > 50000;// use 100k for stocks over $10

p1_10 = av50 AND OI >=  100 AND OI < 1000;
p10_up = av50 AND OI >= 1000;

Cum_p1_10 = LastValue(Cum(p1_10) ,True);
Cum_p10_up = LastValue(Cum(p10_up) ,True);

if(Cum_p1_10) CategoryAddSymbol( "", CategoryWatchlist, 56
) ;//US 1-10
if(Cum_p10_up)CategoryAddSymbol( "", categoryWatchlist, 58
) ;//US 10+





__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


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





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






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