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

Re: [amibroker] Fw: A technical question



PureBytes Links

Trading Reference Links

Hello,

For watch list above 31 use
stk.WatchListBits2 

( 2 ^ (47 - 32 ) );

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "Gordon" <amibroker@xxxxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Monday, January 19, 2004 10:08 PM
Subject: [amibroker] Watchlistbits > 31


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

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 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/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

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/