I think there is more support for COM objects in vb over C++, I dont know anything about C# though.
_____ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of James Quillian Sent: Sunday, 10 February 2008 11:47 AM To: [email protected] Subject: [amibroker] Re: Question AFL Automatic Analysis Explore You mentioned writing script in vb. Is there any advantage to using vb over C++ ? The help file did provide some clarity. I am looking at Batman, trying to figure out how to use it. On of the reasons I like the scripting idea is that I need to learn some programing and this is as good of a reason as any. Thanks James --- In [EMAIL PROTECTED] <mailto:amibroker%40yahoogroups.com> ps.com, "dingo" <[EMAIL PROTECTED]> wrote: > > it works very well BUT there's only the object model in the help file in > terms of documentation. Also, look at the files section of all the Yahoo > forums for examples plus do searches for .vbs and .js in this forum. > > It'll be quicker to just use batman - its a general purpose compiled > vbscript. > > d > > > -----Original Message----- > > From: [EMAIL PROTECTED] <mailto:amibroker%40yahoogroups.com> ps.com > > [mailto:[EMAIL PROTECTED] <mailto:amibroker%40yahoogroups.com> ps.com] On Behalf Of James Quillian > > Sent: Saturday, February 09, 2008 4:25 PM > > To: [EMAIL PROTECTED] <mailto:amibroker%40yahoogroups.com> ps.com > > Subject: [amibroker] Re: Question AFL Automatic Analysis Explore > > > > 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] <mailto:amibroker%40yahoogroups.com> ps.com, "dingo" <dingo@> 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:amibroker%40yahoogroups.com> ps.com > > > > [mailto:[EMAIL PROTECTED] <mailto:amibroker%40yahoogroups.com> ps.com] On Behalf Of James Quillian > > > > Sent: Saturday, February 09, 2008 3:06 PM > > > > To: [EMAIL PROTECTED] <mailto:amibroker%40yahoogroups.com> ps.com > > > > 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.amibroke <http://www.amibroker.com/devlog/> r.com/devlog/ > > > > > > > > For other support material please check also: > > > > http://www.amibroke <http://www.amibroker.com/support.html> r.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.amibroke <http://www.amibroker.com/devlog/> r.com/devlog/ > > > > For other support material please check also: > > http://www.amibroke <http://www.amibroker.com/support.html> r.com/support.html > > > > Yahoo! Groups Links > > > > > > > > >
