PureBytes Links
Trading Reference Links
|
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.com
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
ADVERTISEMENT
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.
|