PureBytes Links
Trading Reference Links
|
When run in AA the following
code returns a version number but not a stock count, it must be a syntax
error (somewhere). Any help appreciated..
oAB = Create<FONT
color=#0000ff>StaticObject(<FONT
color=#ff00ff>"Broker.Application");myVersion =
oAB.Version();oStocks = oAB.Stocks();myCount =
oStocks.Count();Filter=<FONT
color=#ff00ff>1;AddColumn(myCount, <FONT
color=#ff00ff>"Count");<FONT
color=#0000ff>AddText<FONT
color=#0000ff>Column(myVersion,"<FONT
color=#ff00ff>Version");<FONT
size=1>
Thank
you,William
<FONT face=Tahoma
size=2>-----Original Message-----From: William Peters
[mailto:williampeters@xxxxxxxxxxxx]Sent: Tuesday December 30, 2003
10:06 PMTo: amibroker@xxxxxxxxxxxxxxxSubject: RE:
[amibroker] JScripts - some debugging help needed
Tomasz,
Maybe you could clear something
up.
The following code when run
from Visual Basic will delete a ticker from an open AmiBroker database and you
can see the ticker has been deleted without having to close and reopen
AmiBroker. This code produces a syntax error when run from
AA.
oAB =
CreateObject(<FONT
color=#ff00ff>"Broker.Application");Ticker = <FONT
color=#ff00ff>"XYZ<FONT
color=#ff00ff>";<FONT
face="Courier New">oAB.Stocks.Remove(Ticker);oAB.RefreshAll();<FONT
face="Courier New">Buy=<FONT
color=#ff00ff>1;
The following code will run
without a syntax error but fails to delete a ticker:
oAB = CreateObject(<FONT
color=#ff00ff>"Broker.Application");<FONT
face="Courier New">oStocks = oAB.Stocks();Ticker = <FONT
color=#ff00ff>"XYZ<FONT
color=#ff00ff>";<FONT
face="Courier New">oStocks.Remove(Ticker);oAB.RefreshAll();<FONT
face="Courier New">Buy=<FONT
color=#ff00ff>1;
Any clues
appreciated..
Regards,William <SPAN
class=125125602-31122003>
<FONT
face=Tahoma size=2>-----Original Message-----From: Tomasz Janeczko
[mailto:amibroker@xxxxxx]Sent: Tuesday December 30, 2003 9:12
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: Re: [amibroker]
JScripts - some debugging help needed
William,
You can call broker object from AB itself. It has been widely
used in tens of scripts including
ones posted in the past in the newsletter.
Best regards,Tomasz Janeczkoamibroker.comSend
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
Yahoo! Groups Links
To visit your group on the web, go to:<A
href="">http://groups.yahoo.com/group/amibroker/
To unsubscribe from this group, send an email to:<A
href="">amibroker-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
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 the Yahoo! Terms of Service.
|