PureBytes Links
Trading Reference Links
|
Brian, that other user is me. A big thanks to Fred for going the extra mile
and providing support for his great software (that is free too!).
What a great community.
Thanks,
Dave
-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of Fred
Sent: Thursday, March 16, 2006 8:54 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: Automating AA results handling (w/o Batman)
Brian,
Assuming your AB Directory is c:\program files\amibroker\ then you
should be able to run BatMan with the following command ...
mshta.exe "c:\program files\amibroker\batman.hta"
This has been tried succesfully by another FireFox user. Assuming
it does run then the properties of the icon can be changed to the
above and it should run from there as well.
--- In amibroker@xxxxxxxxxxxxxxx, "Brian" <brianrichard99@xxx> wrote:
>
> So, here is what I have so far. I am weeding out what actually
> works, from what does not work. One script works, another does
not --
> which is why I am posting once more.
>
> This actually does clear all symbols within a specific watchlist,
at
> one time. Place the code at the top of your Exploration AFL.
>
> // clear Watchlist
> varWatchlistNumber = 63;// select a watchlist by using its number
> ClearList = GetCategorySymbols(categoryWatchlist,
> varWatchlistNumber);
> for( i = 0; ( symC = StrExtract(ClearList, i) ) != ""; i++ )
> {
> CategoryRemoveSymbol( symC, categoryWatchlist,
varWatchlistNumber );
> }
>
> On the other hand, getting the tickers that appear in my AA
results
> window and putting them into the same watchlist that was just
> cleared, is another story. I've tried numerous scripts. Here are
> three original (scoured the archives) examples of what I have
> tried... note that the conditions do not represent my
> actual "Filter" conditions. I end up with the last ticker from the
> scanned watclist, which appears in the new watchlist (#63). No
other
> tickers are captured. What is wrong?
>
> /// ADD SYMBOLS TO WATCHLIST ///
> Condition = LastValue( C > MA( C, 50 ) );
> ticker = Name();
> wlnumber = 1;
> EnableScript("jscript");
> <%
> if( AFL("condition" ) )
> {
> AB = AFL.CreateObject("Broker.Application");
> AB.Stocks( AFL("ticker" ) ).WatchListBits |= 1 << AFL
( "wlnumber" );
> }
> %>
> Buy=0;
> (Use View->Refresh All to refresh symbol list.)
>
> /// ADD SYMBOLS TO WATCHLIST ///
> // the code adds symbols with last day volume > 100000
> // to the watch list number 1
> if( LastValue( V ) > 100000 )
> {
> CategoryAddSymbol( "", categoryWatchlist, 1 );
> }
>
> /// ADD SYMBOLS TO WATCHLIST ///
> ORigin=0;
> destination=12;
> CategoryRemoveSymbol( "", categoryWatchlist, destination );
> Filter = InWatchList(ORigin) AND MACD()>0;
> AddColumn(RSI(),"");
> CategoryAddSymbol( WriteIf(Filter,Name(),"xyz"),
categoryWatchlist,
> 12 );
> //Hit View->RefreshAll
>
>
> None of these last three scripts work. I've tried several
variations
> that make sense to me, but still do not work. Any ideas or
examples?
> Once I get something that works, I will post these in the AFL
> library.
>
> Thanks in advance!
>
> Brian
>
>
> --- In amibroker@xxxxxxxxxxxxxxx, "Dan Clark" <dan_public@> wrote:
> >
> > Brian,
> >
> >
> >
> > It doesn't erase the contents at once. It removes each symbol
in
> the
> > Watchlist. I've been using this for months.
> >
> >
> >
> > In your case, it would be CategoryRemoveSymbol("",
> categoryWatchlist, 63);
> >
> >
> >
> > Regards,
> >
> >
> >
> > Dan.
> >
> >
> >
> > _____
> >
> > From: amibroker@xxxxxxxxxxxxxxx
[mailto:amibroker@xxxxxxxxxxxxxxx]
> On Behalf
> > Of Brian
> > Sent: Tuesday, March 14, 2006 9:56 PM
> > To: amibroker@xxxxxxxxxxxxxxx
> > 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@>
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
> > <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
Yahoo! Groups Links
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~->
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/
|