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

RE: [amibroker] AmiBroker 4.61.0 BETA released



PureBytes Links

Trading Reference Links

I am trying to interface Amibroker in C#, but I cannot find
broker library. Where did you download the broker.tlb type
library? Thanks a lot!
-brisk
--- In amibroker@xxxxxxxxxxxxxxx, "yund" <yund@xxxx> wrote:
> Hi all,
> 
> I'm trying to interface to Amibroker through COM using C#.  I 
> download the broker.tlb type library.
> 
> I'm trying to do something similar to:
> OptimizationBatch.js
> http://www.amibroker.com/library/detail.php?id=377
> 
> Here are some code snippet that I already wrote:
> ------------------------------------------
> Broker.Application ab = new Broker.ApplicationClass();
> Broker.Analysis aa = (Broker.Analysis) ab.Analysis;
> 
> Object obj = new object();
> 
> Boolean loaded = aa.LoadFormula("c:\\Program
> Files\\AmiBroker\\AFL\\CCIopt.afl");
> aa.ClearFilters();
> aa.ApplyTo = 0;
> aa.RangeMode = 0;
> aa.Optimize(obj);
> -------------------------------------------
> 
> I'm not entirely clear on all the data types and how to access 
them, 
> since it doesn't seem to be documented.  Does anyone have some 
code 
> samples to do the following.
> 
> 1.  How do I make the call to aa.Optimize(Object Type) or 
aa.Backtest
> (Object Type)?
> 2.  How do I extract the data after making the calls to aa.Optimize
> (Object Type) and aa.Backtest(Object Type)?
> 3.  How do I generate a AFL script string to pass to aa.Optimize
> (Object Type) and aa.Backtest(Object Type) other than generating a 
> file and calling aa.LoadFormula(String)?
> 
> Help will be greatly appreciated and any advice would be great, 
since 
> I'm a newbie to Amibroker user.
> 
> Thanks,
> -David




------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

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:
    http://docs.yahoo.com/info/terms/