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

Re: [amibroker] All Those Tickers........



PureBytes Links

Trading Reference Links




Steve,
 
no one can screen or even purchase all 
stocks contained in your database. Therefore, simply try the following 
pre-filter to weed out unwanted stocks:
<FONT face="Courier New" color=#009300 
size=1>
// Scan your database with this small sample code daily or devise minor or 
even larger modifications to this code!<FONT face="Courier New" 
size=1>
// Here is your price preference for a pre-filter to remove unwanted stocks. 
The pre-filter might be varied if you like, but it could be like this 
one.
// Note that the stock prices occur in between a $10-$50 price 
range having also a decently high - but not an exceedingly large - 
volume:
preFilter = (<FONT face="Courier New" color=#ff00ff 
size=1>1 < <FONT 
face="Courier New" color=#ff6820 size=1>close<FONT face="Courier New" 
size=1> <FONT face="Courier New" color=#ff6820 
size=1>AND <FONT 
face="Courier New" color=#ff6820 size=1>close<FONT face="Courier New" 
size=1> < 50<FONT 
face="Courier New" size=1>) <FONT face="Courier New" color=#ff6820 
size=1>AND <FONT 
face="Courier New" color=#800080 size=1>MA<FONT face="Courier New" 
size=1>(<FONT face="Courier New" color=#ff6820 
size=1>close, <FONT 
face="Courier New" color=#ff00ff size=1>50<FONT face="Courier New" 
size=1>) < <FONT face="Courier New" color=#ff00ff 
size=1>1E5;<FONT 
face="Courier New" color=#009300 size=1>
// For example, your filter could be as follows if you like:<FONT 
face="Courier New" size=1>
yourFilter = <FONT face="Courier New" color=#800080 
size=1>Cross(<FONT 
face="Courier New" color=#800080 size=1>MACD<FONT face="Courier New" 
size=1>(), <FONT face="Courier New" color=#800080 
size=1>Signal());<FONT 
face="Courier New" color=#ff6820 size=1>
filter = yourFilter 
AND<FONT 
face="Courier New" size=1> preFilter;<FONT face="Courier New" 
color=#ff6820 size=1>
buy = <FONT 
face="Courier New" color=#800080 size=1>IIF<FONT face="Courier New" 
size=1>(<FONT face="Courier New" color=#ff6820 
size=1>filter == <FONT 
face="Courier New" color=#ff6820 size=1>true<FONT face="Courier New" 
size=1>, <FONT face="Courier New" color=#ff6820 
size=1>true, <FONT 
face="Courier New" color=#ff6820 size=1>false<FONT face="Courier New" 
size=1>);
sell = <FONT 
face="Courier New" color=#800080 size=1>Cross<FONT face="Courier New" 
size=1>(<FONT face="Courier New" color=#800080 
size=1>Signal(), <FONT 
face="Courier New" color=#800080 size=1>MACD<FONT face="Courier New" 
size=1>());
AddColumn(preFilter, <FONT 
face="Courier New" color=#0000ff size=1>"preFilter"<FONT 
face="Courier New" size=1>, format = <FONT face="Courier New" 
color=#ff00ff size=1>1.0<FONT face="Courier New" 
size=1>);
AddColumn(yourFilter, <FONT 
face="Courier New" color=#0000ff size=1>"yourFilter"<FONT 
face="Courier New" size=1>, format = <FONT face="Courier New" 
color=#ff00ff size=1>1.0<FONT face="Courier New" 
size=1>);
Addcolumn(<FONT 
face="Courier New" color=#ff6820 size=1>filter<FONT 
face="Courier New" size=1>, <FONT face="Courier New" color=#0000ff 
size=1>"filter", format = <FONT 
face="Courier New" color=#ff00ff size=1>1.0<FONT face="Courier New" 
size=1>);
AddColumn(<FONT 
face="Courier New" color=#800080 size=1>MACD<FONT face="Courier New" 
size=1>(), <FONT face="Courier New" color=#0000ff 
size=1>"MACD()");<FONT 
face="Courier New" color=#800080 size=1>
AddColumn(<FONT 
face="Courier New" color=#800080 size=1>Signal<FONT 
face="Courier New" size=1>(), <FONT face="Courier New" color=#0000ff 
size=1>"Signal()");<FONT 
face="Courier New" color=#800080 size=1>
AddColumn(<FONT 
face="Courier New" color=#ff6820 size=1>buy<FONT face="Courier New" 
size=1>, "buy"<FONT 
face="Courier New" size=1>, format = <FONT face="Courier New" 
color=#ff00ff size=1>1.0<FONT face="Courier New" 
size=1>);
AddColumn(<FONT 
face="Courier New" color=#ff6820 size=1>sell<FONT face="Courier New" 
size=1>, "sell"<FONT 
face="Courier New" size=1>, format = <FONT face="Courier New" 
color=#ff00ff size=1>1.0);
Try this code and have fun with 
it!
Regards,
<FONT 
size=2>Udo
<BLOCKQUOTE 
>
  -----Ursprüngliche Nachricht----- 
  <DIV 
  >Von: 
  <A title=steve@xxxxxxxxxxxxxxxxxxxxxx 
  href="">steve_almond 
  An: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Gesendet: Mittwoch, den 4. Juni 2003 
  16:04 Uhr
  Betreff: [amibroker] All Those 
  Tickers........
  As I speak, I'm downloading the 'Complete US Stocks 
  Database', some 7700 symbols in all, nicely arranged in 
  Market/Groups/Sectors.Thing is, I don't really want all 7700 symbols. I 
  get confused enough with a few hundred. So, the question is can I scan 
  this vast database and select/keep only those with (for 
  example):C*MA(V,21)>3,000,000I know how to do the 
  scan/exploration, how do I eliminate the unwanted tickers, but keep the 
  wanted tickers in their correct Groups/Sectors? <FONT 
  color=#ff0000>// Based on the performance of the 
  stocks??Thanks,SteveSend 
  BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx-----------------------------------------Post 
  AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  Your use of Yahoo! Groups is subject to the <A 
  href="">Yahoo! Terms of Service. 







Yahoo! Groups Sponsor












Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.