The filename prefix, in this case ETF, and filetype, in this
case .tls, are at least user supplied ...
If one wanted more flexibility then that then this could be
accomplished by incorporating whatever one wanted in embedded .vbs
i.e.
EnableScript("vbscript")
<%
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set oFolder = oFSO.GetFolder("c:\work\")
Set oFiles = oFolder.Files
for Each File in oFiles
FList = FList & File.name &vbCrLf
Next
MsgBox FList
%>
--- In [email protected], "Mark H" <[EMAIL PROTECTED]> wrote:
>
> Fred:
>
> Your code really shows what AFL can do. I wish we had fopendir() so
you don't have to restrict the file names to be ETF#.tls.
> As a workaround, we can list all files in the code.I also found it
doesn't really need the working watchlist!
> You can just loop through the tickers from the file and call foreign
() and Atc()!
> So two-third of the code can be removed. Just for fun, I have
attached an updated version. No JScript needed!
>
> - Mark H.
>
> ----- Original Message -----
> From: Fred Tonetti
> To: [email protected]
> Sent: Saturday, September 16, 2006 5:16 AM
> Subject: [amibroker] Re: Loading Symbols via AFL--was: I need a
little help with an ATC
>
>
>
> Attached is an all AFL version that I don't think is overly
complex and requires no interaction during a run.
>
> There are a couple of requirements for file naming but nothing
overly restrictive ( See Internal Notes )
>
> It should be run as an Explore on the Current Ticker. It is
irrelevant what ticker that is except possibly in terms of how much
data history it has.
>
> The AA Window would show the following info .
>
> Ticker Date/Time Completed Completed
>
> ~ETF2 9/15/2006 ~ETF1 ~ETF2
>
> DbgView would show the following info .
>
> Removing Tickers from W/L 63
>
> ~ETF1
>
> ~ETF2
>
> Removing Tickers from W/L 62
>
> $COMPX
>
> $RUT.X
>
> $SPX.X
>
> Loading Tickers from C:/Work/ETF1.tls
>
> $RUT.X
>
> $SPX.X
>
> $COMPX
>
> Processing Tickers & Adding to Composite ~ETF1
>
> $COMPX
>
> $RUT.X
>
> $SPX.X
>
> Removing Tickers from W/L 62
>
> $COMPX
>
> $RUT.X
>
> $SPX.X
>
> Loading Tickers from C:/Work/ETF2.tls
>
> $RUT.X
>
> $SPX.X
>
> $COMPX
>
> Processing Tickers & Adding to Composite ~ETF2
>
> $COMPX
>
> $RUT.X
>
> $SPX.X
>
> <<...>>
>
>
>
> --------------------------------------------------------------------
----------
> I am using the free version of SPAMfighter for private users.
> It has removed 8504 spam emails to date.
> Paying users do not have this message in their emails.
> Try SPAMfighter for free now!
>
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 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:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/