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

[amibroker] Setting the current ticker from afl



PureBytes Links

Trading Reference Links

At some point this code was provided by TJ to set the current ticker but it seems to require peripheral code to make it work properly.

AB = CreateObject("Broker.Application" ) ;
Docs = AB.Documents;
Docs.Open("Ticker" ) ;

The above code jumps to the first chart-tab and keeps opening new charts at each refresh. 

All I need is to change the current ticker WITHOUT changing anything else, just like typing it in the Ticker window, but do it from afl. The purpose is so that when one of my positions changes my code will automatically update the layout to focus on the ticker and display relevant stats.

Any software engineers around who know how to do this?

Many thanks for any help you can give.
herman
Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.22/666 - Release Date: 2/3/2007 3:31 PM