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

Re: [amibroker] Amiquote and Amibroker



PureBytes Links

Trading Reference Links




Arthur.. You are correct.. It should have been 
oStock.Alias
 
Bruce
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Arthur 
  Sawilejskij 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Sunday, July 20, 2003 7:57 AM
  Subject: Re: [amibroker] Amiquote and 
  Amibroker
  Bruce,Thanks for that - just what I 
  need.Just one point of clarification.In the second script - 
  the line near the end that creates ASX.AX - should that read  
  f.WriteLine (oStock.Alias);}rather than  
  f.WriteLine 
  (oStock.Ticker);}Arthur?:>Arthur,>>Here 
  are 2 simple JScript files that will do what you want..>>The 
  first one, is the one that I use to add the required .AX to my 
  codes.>You only have to modify the alias field, instead of the TICKER 
  itself.>>try this script>><---- Cut here for 
  SetUpAlias.js --->var oAB = new 
  ActiveXObject("Broker.Application");>>var oStocks = 
  oAB.Stocks;>var StockQty = 
  oStocks.Count;>>WScript.Echo("Script ready to start" 
  );>>for( i = 0; i < StockQty; i++ 
  )>{>         oStock = 
  oStocks( i );>>         
  if (oStock == null) 
  continue;>         oStock.Alias 
  = oStock.Ticker + 
  ".AX";>         
  oStock.IsDirty=1;>}>WScript.Echo("Script finished" 
  );>><-- Cut here>>Then to create the .TLS file 
  for AmiQuote to use, just use the following >JScript 
  file>>><-- Cut here for Make_TLS_File.js 
  ------------->var oAB = new 
  ActiveXObject("Broker.Application");>var fso = new 
  ActiveXObject("Scripting.FileSystemObject");>>var oStocks = 
  oAB.Stocks;>>var StockQty = 
  oStocks.Count;>WScript.Echo("Started script" );>f = 
  fso.OpenTextFile("c:\\Amibroker\\Amiquote\\ASX.TLS", 2, true );>for( i 
  = 0; i < StockQty; i++ )>{>  oStock = oStocks( i 
  );>  f.WriteLine 
  (oStock.Ticker);>}>f.Close();>WScript.Echo("ASX.TLS file 
  created" );>>>Bruce>Perth, 
  Australia>>>>----- Original Message 
  ----->From: <mailto:arthur@xxxxxxxxxxxxxxx>Arthur 
  Sawilejskij>To: 
  <mailto:amibroker@xxxxxxxxxxxxxxx>amibroker@xxxxxxxxxxxxxxx>Sent: 
  Saturday, July 19, 2003 8:15 PM>Subject: [amibroker] Amiquote and 
  Amibroker>>I have a database of Australian stock that I want to 
  update with Amiquote.>>At the moment the stock have a 3 letter 
  format - like AGL - but I need to>change the database to AGL.AX to 
  accommodate getting the Yahoo data via>Amiquote and appending the 
  latest data to my database.>>Is there an easy way to do this - 
  or do I have to manually append .AX to>all the 3 letter stock codes in 
  my AB database.>>Arthur>>>>Yahoo! 
  Groups Sponsor>>ADVERTISEMENT><<A 
  href="">http://rd.yahoo.com/M=251812.3170658.4537139.1261774/D=egroupweb/S=1705632198:HM/A=1652964/R=0/SIG=11t2ts2ch/*http://www.netflix.com/Default?mqso=60178276&partid=3170658>aecfbd5.jpg 
  >>aecfc03.jpg>>>Send BUG REPORTS to 
  bugs@xxxxxxxxxxxxx>Send SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx>----------------------------------------->Post 
  AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx>(Web page: 
  ><<A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)><A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)>-------------------------------------------->Check 
  group FAQ at: ><<A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html><A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  >>>Your use of Yahoo! Groups is subject to the 
  ><<A 
  href="">http://docs.yahoo.com/info/terms/>Yahoo! 
  Terms of Service.Send 
  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


  ADVERTISEMENT 









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.