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

Re: [amibroker] OLE



PureBytes Links

Trading Reference Links

To Load and run an AFL you MUST do it with an external script. Unless you 
really want to struggle with this I'd suggest you investigate "Batman".  I 
think its located in the files section of this forum.

d

On Sat, 29 Mar 2008 08:57:00 -0000
  "jim_wiehe" <jim_wiehe@xxxxxxxxx> wrote:
>     Below is my first attempt at automation and it didn't work 
> probably because I don't know what I'm doing.  But with that being 
> said I fully appreciate the benefits that can be achieved from 
> automation. 
>     I want to execute multiple ATC afl and eventually export to 
> Excel directly.  Can someone briefly explain a step by step process 
> to run a scripting afl?  I cant make the file run outside Amibroker 
> and It doesnt run within AA.  
> 
> Jim Wiehe
>   
> <%
> EnableScript("vbscript");
> 
> 
> /* create AB object */
> 
> AB = CreateObject("Broker.Application");
> 
> 
> /* retrieve automatic analysis object */
> 
> AA = AB.Analysis;
> 
> 
> 
> /* load formula from external file */
> 
> AA.LoadFormula("C:\\Program Files\\AmiBroker\\Formulas\\my 
> stuff\\ScansExplorations\\A D Comps  Sector-Industry atc.afl");
> 
> 
> 
> /* setup filters */
> 
> /* backtest over symbols present in market 0 only (zero-based number) 
> */
> 
> AA.ClearFilters(); 
> 
> 
> 
> /* set apply to and range */
> 
> AA.ApplyTo = 2; // use filter (WatchList)
> 
> AA.RangeMode = 2; // defines range mode: 0 - all quotes, 1 - n last 
> quotes, 2 - n last days, 3 - from-to date
> 
> 
> AA.RangeN = 1;  // defines N (number of bars/days to backtest)
> 
> 
> 
> /* run Scan */
> 
> AA.Explore();
> 
> 
> 
> ------------------------------------
> 
> 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
> 
> 
> 


------------------------------------

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/