PureBytes Links
Trading Reference Links
|
This came from some of Dan Clark's work.
On an SCAN where you're screening the BUY candidates.
For a quick test I would choose a short
watch list in your Filter selection instead of ALL.
The "" will add the current ticker into
in this case WL 3. You can assign a
label to Watchlist and use a Param function or
hard code as Dan did here. Might be safer to hard code.
YourCondition = LastValue( MACD() <
0 ); // replace with yours
if ( YourCondition )
{
CategoryAddSymbol ( "", categoryWatchlist, 3 );
}
Buy = Sell = 0; // this allows a
SCAN to be run, otherwise it will ask you for
BUY,SELL,SHORT,COVER
// The above works on a SCAN of a small
watchlist, with N last days =1;
// **************************
Hope it helps. Lots of examples in
function definition area.
JOE
----- Original Message -----
Sent: Saturday, March 25, 2006 2:19
PM
Subject: Re: [amibroker] add scan results
to wathlist programmatically
Hi Joe,
could you give an example? I played with my afl but could not figure out
how to get the scanned out symbols.
if my buy signal is like below, how to add the scanned out 'buy' symbols
to watch list?
buy = a & b & c;
i tried: CategoryAddSymbol(Name(), categoryWatchlist, 10); but got all db
symbols added.
i also tried: valuewhen(buy, name()), but got syntax error.
could you shed some lite on this?
thanks a lot
Jeff
On 3/25/06, Joe
Landry <jelandry@xxxxxxxxxxxxx>
wrote:
There's a function called
categoryaddsymbol...can be used to add your selected ticker to a watchlist
to
build watchlists. You can also
clear your watchlist programmatically. Best regards
JOE
----- Original Message -----
Sent: Saturday, March 25, 2006 1:04
AM
Subject: [amibroker] add scan results
to wathlist programmatically
is it possible to add scan results to wathlist with AFL
programmatically? I have to do "add all results to watch list" all the
time at this point.
thanks in advance
Jeff
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
YAHOO! GROUPS LINKS
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
|
|