RE: RE: [amibroker] Referencing a stock margin file

2007-05-23 Thread dingo
In the help file search on File Input/Output functions d > -Original Message- > From: amibroker@yahoogroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of David Smith > Sent: Wednesday, May 23, 2007 8:08 PM > To: amibroker@yahoogroups.com > Subject: Re: RE: [amibro

Re: RE: [amibroker] Referencing a stock margin file

2007-05-23 Thread David Smith
Paul... I have a csv file with a stock list and margin requirement from a range of say 3 to 100. As you suggest I hoped there was a way to either run a script occassionally & set the margindeposit value for each symbol, OR read the csv file during a backtest & set the margin in AFL. I can't

RE: [amibroker] Referencing a stock margin file

2007-05-23 Thread Paul Ho
You have 2 choices a. you can write a jscript that reads a csv file and load the margindeposit into database b. you can use afl functions to open and read an existing file and overwrite the margindeposit variable. _ From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of D

Re: [amibroker] Referencing a stock margin file

2007-05-23 Thread Joe Landry
David - the answer is yes, and there are 3 ways that I'm familiar with, 1) file operations in AFL using text or csv files, 2) MS Access database, and Excel. There's an example in the file library for controlling Excel. You may have to pull up Babelfish and translate the commentary to Engli