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 find an example for reading external files in the help file yet, do you have a suggestion for either? Dave > Paul Ho <[EMAIL PROTECTED]> wrote: > > 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: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf > Of David > Sent: Wednesday, 23 May 2007 7:59 PM > To: [email protected] > Subject: [amibroker] Referencing a stock margin file > > > > Hi, > > does anyone know if we can query an external text file containing > watchlist symbols & margin values to set margin values or > margindeposit values for individual shares? Or to put another way, I > have an excel sheet of stocks with margins for CFD trading. Is there > are way to reference the this file to set individual margins for > stocks in backtesting & calculating position sizing in explorations? > > Regards, David > > > > David Smith 55 OLIVIA PLACE PULLENVALE, 4069 Ph: 3374 4819 Mob: 0411 120 952
