Thank you!

--- In [email protected], "Tomasz Janeczko" <[EMAIL PROTECTED]> 
wrote:
>
> Hello,
> 
> Use:
> 
> doc = documents.open("symbol");
> 
> ..
> ...
> ...
> doc.Close();
> 
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message ----- 
> From: "JD Fagan" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Saturday, March 24, 2007 5:55 PM
> Subject: [amibroker] how to set current stock via COM/OLE 
programmatically?
> 
> 
> > Hello,
> > 
> > I was hoping for a little help with some COM/OLE programming if 
> > others out there have figured this one out.
> > 
> > I've gone over the latest 4.90 AB OLE object model but can't find 
a 
> > way to programmatically control the setting of the "current 
symbol".  
> > For example, if I'm currently looking at symbol "GOOG" but want 
my 
> > OLE script to override the current stock to "IBM" before running 
a 
> > scan, how can I do this?  I'm writing some Javascript where it 
will 
> > perform a scan with the following snippet:
> > 
> > aa.ApplyTo = 1; //use current stock
> > 
> > I don't think this sets the current stock from what I can tell:
> > 
> > ab.Stocks.Item("IBM");   //my reference stock I want to set to 
before 
> > running scan
> > 
> > Thanks for any tips if this is possible to do.
> > 
> > J.D. Fagan
> > 
> > 
> > 
> > 
> > Please note that this group is for discussion between users only.
> > 
> > To get support from AmiBroker please send an e-mail directly to 
> > SUPPORT {at} amibroker.com
> > 
> > For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> > http://www.amibroker.com/devlog/
> > 
> > For other support material please check also:
> > http://www.amibroker.com/support.html
> > 
> > Yahoo! Groups Links
> > 
> > 
> > 
> > 
> >
>


Reply via email to