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

Re: [amibroker] help on a watchlist



PureBytes Links

Trading Reference Links

Jim - This works, and it's a case of where IIF is not used.  You're not 

operating on arrays and I think you want to control the flow of the AFL code.  

To try it out select for a filter a market (eg NASDAQ) and select 1 bar for the range, run Explore

HTH

JOE  

qprank = GetExtraData("epsrank")+GetExtraData("qrs")+RSI(6) ;

score = Filter= C>4 AND MA(V,11)>150000 AND qprank > 200;

if (LastValue(Score))

{

CategoryAddSymbol( "", categoryWatchlist, 7 );

}

AddColumn(qprank,"QPR"); 

AddColumn(Close,"close",1.2);

AddColumn (Volume,"volume",1.0);

AddColumn (MACD() ,"macd" ,1.2);

AddColumn (ADX() ,"adx",1.);

  ----- Original Message ----- 
  From: JIM WIEHE 
  To: amibroker@xxxxxxxxxxxxxxx 
  Sent: Saturday, December 09, 2006 5:39 AM
  Subject: Re: [amibroker] help on a watchlist


  thanks but i already tried that one, it did not work
  either. the results were the same as my other method
  in that all the common stocks go into the watchlist. 

  --- Anthony Faragasso <ajf1111@xxxxxxxx> wrote:

  > qprank =
  > GetExtraData("epsrank")+GetExtraData("qrs")+RSI(6) ;
  > 
  > Filter= C>4 AND MA(V,11)>150000 AND qprank>200;
  > 
  > CategoryAddSymbol( "", categoryWatchlist, 7 );
  > 
  > ----- Original Message ----- 
  > From: jim_wiehe 
  > To: amibroker@xxxxxxxxxxxxxxx 
  > Sent: Saturday, December 09, 2006 5:24 AM
  > Subject: [amibroker] help on a watchlist
  > 
  > 
  > I am trying to be a little more productive with a
  > prefilter 
  > performed on common stocks. My goal is to have the
  > basic prescan 
  > place the results automatically into a watchlist.
  > My results are the 
  > complete list of common stocks going into the
  > watchlist. AA menu 
  > produces accurate results but what's going into
  > the watchlist is 
  > not. Anybody have a suggestion?
  > 
  > qprank =
  > GetExtraData("epsrank")+GetExtraData("qrs")+RSI(6) ;
  > IIf(Filter= C>4 AND MA(V,11)>150000 AND
  > qprank>200,CategoryAddSymbol
  > ( "", categoryWatchlist, 7 ),0 );
  > 
  > AddColumn(Close,"close",1.2);
  > AddColumn (Volume,"volume",1.0);
  > AddColumn (MACD() ,"macd" ,1.2);
  > AddColumn (ADX() ,"adx",1.);
  > 
  > Thanks in advance
  > 
  > Jim
  > 
  > 
  > 
  > 
  > 
  > 
  >
  ----------------------------------------------------------
  > 
  > avast! Antivirus: Inbound message clean. 
  > 
  > Virus Database (VPS): 0655-1, 12/08/2006
  > Tested on: 12/9/2006 5:28:13 AM
  > avast! - copyright (c) 1988-2006 ALWIL Software.
  > 
  > 

  __________________________________________________________
  Do you Yahoo!?
  Everyone is raving about the all-new Yahoo! Mail beta.
  http://new.mail.yahoo.com


   
Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.15.15/580 - Release Date: 12/8/2006 12:53 PM