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

Re: [amibroker] Re: Automating AA results handling (w/o Batman)



PureBytes Links

Trading Reference Links

Everyone to his own preference, but I prefer to clear the watchlist in one module of AFL (not sure how many times Amibroker executes since it doesn't affect my

timing to what I can perceive) .  This Clip looks like it comes from Bruce Robinson and will clear WL 50.  Rather than getting "fancy" and reading string of

watchlists to clear more than one, I will attach sections of code one after the other so that if I wanted to clear list 51, I would repeat this code.

//*************************************************************************************************************

// clear Watchlist 50, which will be used to store composite symbols of hedge results

ClearList = GetCategorySymbols(categoryWatchlist, 50);

for( i = 0; ( symC = StrExtract(ClearList, i) ) != ""; i++ )

{

CategoryRemoveSymbol( symC, categoryWatchlist, 50 );

}

// get the short and long hedging funds that are adequately correlated to the selected fund

//***********************************************************************************************************

Being a "Code Monkey" of sorts, I,  like Herman and Ken Close,  acquired InfoSelect 2-3 years ago

and use it to store clips of code that I don't know how to do at that time or some that I want to study later.  So in

seeing a email with a piece of code that looks interesting or may be useful, I clip and paste it in my InfoSelect DB, including

the links.   Periodically I make backup passes where I've used it to store every file on my machine that ends in AFL

and it serves me much better in searches than the desktop indexers like MS Desktop.   It's worth the time and money for

the product from MicroDecision (Fred this is not spam).

Hope this helps

JOE

 

 

----- Original Message -----
From: Brian
Sent: Tuesday, March 14, 2006 11:56 PM
Subject: [amibroker] Re: Automating AA results handling (w/o Batman)

Dan -- Thanks, though I tried this earlier today actually and I am
running into the same issue... the CategoryRemoveSymbol (added to
the top of a few hundred lines of code) does not erase the contents
of the watchlist. CategoryAddSymbol then appends the new ticker
symbols to the existing watchlist (#63) ticker symbols.

I remember having a small _javascript_ a couple of years ago that did
all of this without much problem, but I lost the thing -- that was
two PCs ago.

Thanks,

Brian




--- In amibroker@xxxxxxxxxxxxxxx, "Dan Clark" <dan_public@xxx> wrote:
>
> Brian,
>

>
> Add this at the top:
>

>
> CategoryRemoveSymbol("", categoryWatchlist, 1);  //Watchlist = 1
>
> .
>

>
> //Some criteria code
>

>
> .
>

>
> //Add Symbols to Watchlist 1
>
> if (bCriteriaIsMet)
>
>      CategoryAddSymbol( "" , categoryWatchlist, 1); //Watchlist = 1
>
>      
>

>

>

>
>   _____ 
>
> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx]
On Behalf
> Of Brian
> Sent: Tuesday, March 14, 2006 8:17 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Automating AA results handling (w/o Batman)
>

>
> I used to have a small script that would automatically take
> exploration results and put them in a specific watchlist. I have
> looked at Batman but I think that might be overkill for what I
need.
> Only other functionality that would be nice is such a script would
be
> to automatically delete the contents of the watchlist prior to
> repopulating it.
>
> Anyone got this script handy? Mine got lost in the shuffle awhile
back.
>
> Thanks in advance!
>
> Brian
>
>
>
>
>
> 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
>
>
>
>
>
>
> SPONSORED LINKS
>
>
> Investment
> <http://groups.yahoo.com/gads?
t=ms&k=Investment+management+software&w1=Inves
>
tment+management+software&w2=Real+estate+investment+software&w3=Inves
tment+p
>
roperty+software&w4=Software+support&w5=Real+estate+investment+analys
is+soft
> ware&w6=Investment+software&c=6&s=200&.sig=_XXUzbE9l5lGlZNcMu4KNQ>
> management software
>
> Real
> <http://groups.yahoo.com/gads?
t=ms&k=Real+estate+investment+software&w1=Inve
>
stment+management+software&w2=Real+estate+investment+software&w3=Inve
stment+
>
property+software&w4=Software+support&w5=Real+estate+investment+analy
sis+sof
>
tware&w6=Investment+software&c=6&s=200&.sig=5_sgDczz3ArKGMtJ9tFSJA> 
estate
> investment software
>
> Investment
> <http://groups.yahoo.com/gads?
t=ms&k=Investment+property+software&w1=Investm
>
ent+management+software&w2=Real+estate+investment+software&w3=Investm
ent+pro
>
perty+software&w4=Software+support&w5=Real+estate+investment+analysis
+softwa
> re&w6=Investment+software&c=6&s=200&.sig=_N6zcwefgp4eg5n6oX5WZw> 
property
> software
>
>
> Software
> <http://groups.yahoo.com/gads?
t=ms&k=Software+support&w1=Investment+manageme
>
nt+software&w2=Real+estate+investment+software&w3=Investment+property
+softwa
>
re&w4=Software+support&w5=Real+estate+investment+analysis+software&w6
=Invest
> ment+software&c=6&s=200&.sig=MJ2jP31F3n64RDZkDadU8w>  support
>
> Real
> <http://groups.yahoo.com/gads?
t=ms&k=Real+estate+investment+analysis+softwar
>
e&w1=Investment+management+software&w2=Real+estate+investment+softwar
e&w3=In
>
vestment+property+software&w4=Software+support&w5=Real+estate+investm
ent+ana
>
lysis+software&w6=Investment+software&c=6&s=200&.sig=GmF8PlAJASx0wrSa
X5-Zlw>
> estate investment analysis software
>
> Investment
> <http://groups.yahoo.com/gads?
t=ms&k=Investment+software&w1=Investment+manag
>
ement+software&w2=Real+estate+investment+software&w3=Investment+prope
rty+sof
>
tware&w4=Software+support&w5=Real+estate+investment+analysis+software
&w6=Inv
> estment+software&c=6&s=200&.sig=aMgGsKT4w29dMAYUzQUKzg>  software
>

>
>   _____ 
>
> YAHOO! GROUPS LINKS
>

>
> *      Visit your group "amibroker
> <http://groups.yahoo.com/group/amibroker> " on the web.
>  
> *      To unsubscribe from this group, send an email to:
>  amibroker-unsubscribe@xxxxxxxxxxxxxxx
> <mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe>
>  
> *      Your use of Yahoo! Groups is subject to the Yahoo!
> <http://docs.yahoo.com/info/terms/>  Terms of Service.
>

>
>   _____
>






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





SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS