PureBytes Links
Trading Reference Links
|
Awesome. Thanks. I read the documentation and missed retrieve -- I
didn't scroll down and see it among the new features. Thanks.
I take it -1 tells it to go the vendor as opposed to fetch a cached
quote? Also, if you happen to know, can one safely assume that a RT
quote (in this case from eSignal) is the bid/ask for the underlying,
since we don't have a bar necessarily? Or does AmiBroker, assuming
the base interval of your database is 1 min., give you the current
OHLC, etc., of the most current 1 min. bar? I think this is
important, especially since pre-market you have OTC stocks for which
there are no pre-market quotes, and others where the most recent
activity of any kind may have been several minutes ago.
BTW, you have a very subtle and important nuance in your code that I
only discovered last night about 1AM -- that's using CStr in:
AB.stocks(CStr(strTicker))...
I was coding, and
AB.stocks("AAII") was working for me, but:
Ticker = "AAII"
AB.stocks(Ticker)...
was not. Finally I tried CStr, and it worked. Definitely something to
highlight in the code example for others who might run into the same
thing.
Gordon
--- In amibroker@xxxxxxxxxxxxxxx, "dingo" <dingo@xxxx> wrote:
> Gordon,
>
> I use the following to get quotes - extremely fast. As to how to be
> certain you've got the latest - maybe check the time?
>
> lngQteCount = _
> AB.stocks(CStr(strTicker)).quotations.Retrieve(-1, varDate,
_
> varOpen, varHigh, varLow, varClose, varVolume,
varOpenInt)
>
> Lemme know if you find out anything.
>
> d
>
> -----Original Message-----
> From: Gordon [mailto:amibroker@x...]
> Sent: Wednesday, August 06, 2003 12:11 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Accessing RT Quotes
>
>
> I got AB configured for use with eSignal, and yes, AB manages the
> number of active symbols so that you can stay within your limit.
Very
> cool. I've written a routine to loop through a list of 1,000+
symbols
> looking for pre-market gaps. I load each stock using the stocks
> collection, and then access the last quote in the quotations
> collection. Easy enough.
>
> What I am not sure of -- does AB refresh the quotations collection
> when you load the stock? Just to be safe, I've been opening the
stock
> in AB and waiting app. 2.5 seconds to allow AB to contact eSignal
and
> refresh that stock. However, I've run into problems -- after
looping
> successfully through a number of stocks, I suddenly got an error
> indicating the an object was not set. The AB screen had also been
> modified -- the moveable toolbars were rearranged and the MACD
window
> had been closed. So, this does not look like a good approach.
>
> The only method I see to apparently update the quotes is refreshall
> () -- is there a way to load a single stock, and be sure you have
the
> latest RT quote for that stock without opening it in AB
> programatically? Any insights appreciated!
>
> Thanks,
>
> Gordon
>
>
>
>
>
> Yahoo! Groups Sponsor
>
> ADVERTISEMENT
>
>
<http://rd.yahoo.com/M=244522.3656190.4921519.1261774/D=egroupweb/S=17
05
>
632198:HM/A=1595053/R=0/SIG=124mh1h7k/*http://ashnin.com/clk/muryutait
ak
> enattogyo?YH=3656190&yhad=1595053> Click Here!
>
> <http://us.adserver.yahoo.com/l?
M=244522.3656190.4921519.1261774/D=egrou
> pmail/S=:HM/A=1595053/rand=816749787>
>
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> 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
> <http://docs.yahoo.com/info/terms/> .
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->
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 http://docs.yahoo.com/info/terms/
|