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

[amibroker] Re: stock from sector in Watchlist



PureBytes Links

Trading Reference Links

I found that it is not as exact a I thought.
Industries have different names then industry index symbol. I have
industry with name "Paper", DJ Index symbol is $DJUSPP and this index
ticker is also member of "Paper" industry.

So I found I need such solution for problem. Two solutions are
possible

Solution Nr. 1:
**************
I have watchlist with several $DJUS.. symbols
I need to do exploration like this:

For each symbol in watchlist(x) do
(
  q = symbol.industryID;
  /* check for industryID of concrete symbol from watchlist

  for 1 to number of symbols in q do
  /* test all other symbols in the same industry for conditions
  ( arrange several conditions and test them
    if match then publish it into Exploration list
    /* like Filter=C>5 AND C<100 AND C>EMA(C,20));
   )
)


Solution Nr. 2:
**************

Explore all stock in database and for each stock check these
conditions:

a) some standard conditions
  /* like C>5 AND C<100 AND C>EMA(C,20));

a) this special condition
 Condition= find if current symbol.industryID is same as industryID of
 one of symbols which can be found in Watchlist(x);

Maybe this solution nr II will generate less loops. but I do not know.

Can these solutions be programmed easily in AFL ?
I do not know how ...





------------------------ 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/