PureBytes Links
Trading Reference Links
|
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 <paultsho@xxxxxxxxxxxx> 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: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On
> Behalf
> Of David
> Sent: Wednesday, 23 May 2007 7:59 PM
> To: amibroker@xxxxxxxxxxxxxxx
> 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
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/
|