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

RE: [amibroker] Service Info please



PureBytes Links

Trading Reference Links

Hi,

I've got some basic code which works fine. It addes the stock for the 
active document to watch list "List 8" as 2 ^ 8 = 256. However, I 
can't find from the newsgroups or help how to deal with, say, list 
47. 2 ^ 47 results in overflow. Any thoughts?

Dim ab
Dim ticker
Dim stk
Dim qts
Set ab = Wscript.GetObject("","broker.application")
ticker = ab.ActiveDocument.Name
Set stk = ab.Stocks.Item(cstr(ticker))
stk.WatchListBits = (stk.WatchListBits Or 256)
Set stk = nothing
Set ab = nothing

Gordon


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 

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/