Dingo: The vbs approach sounds interesting. Do external scripts generally work well with Amibroker? Right now I am using a combination of Automatic Analysis to Excel and back Automatic Analysis. I am exploring possible ways to combine all of the steps into one program. Do you know of any tutorials on using external scripts with Amibrokier? James
--- In [email protected], "dingo" <[EMAIL PROTECTED]> wrote: > > You can do it with the export button on the AA window. > > If you still want to it via code you can write an in vbs, > jscript to use the COM objects. If you want to do it in AFL inside the > formula then you can add code using the file IO functions: > > File Input/Output functions > > fclose - close a file (AFL 2.5) > fdelete - deletes a file (AFL 2.70) > feof - test for end-of-file (AFL 2.5) > fgets - get a string from a file (AFL 2.5) > fgetstatus - retrieves file status/properties (AFL 2.90) > fmkdir - creates (makes) a directory (AFL 2.70) > fopen - open a file (AFL 2.5) > fputs - write a string to a file (AFL 2.5) > frmdir - removes a directory (AFL 2.70) > > What you'll need to do is open the file once at the beginning of the AFL and > then add some AFL to build a string of what you want to write out to the > file and then actually write out that file. > > d > > > -----Original Message----- > > From: [email protected] > > [mailto:[EMAIL PROTECTED] On Behalf Of James Quillian > > Sent: Saturday, February 09, 2008 3:06 PM > > To: [email protected] > > Subject: [amibroker] Question AFL Automatic Analysis Explore > > > > This code produces > > > > Filter=C > 0; > > > > AddColumn( ROC(C,200), "r200)", 1.4 ); > > > > The following output on the AA screen. > > > > Ticker Date/Time r200) r30) > > AACC 2/8/2008 -49.4406 -13.4124 > > ADM 2/8/2008 4.7824 -9.4863 > > AEO 2/8/2008 -27.6646 3.9366 > > ANN 2/8/2008 -33.4996 -3.1728 > > APSG 2/8/2008 -24.9434 -7.975 > > > > Is there any code that could be used to write the output to an array > > file to be stored on the hard disk? > > > > > > > > > > > > > > > > > > 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 > > > > > > > > >
