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

[amibroker] how to set current stock via COM/OLE programmatically?



PureBytes Links

Trading Reference Links

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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

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