You can use any valid filename that you want. Assuming that you will be looping through bars, you can just use the Day(), Month(), Year() functions, then construct your file name using the indexed value on a bar by bar basis.
See this library example for reference: http://www.amibroker.com/library/detail.php?id=1044&hilite=YEAR You will, of course, have to modify it to suit your needs. But, the concept of iterating through bars and accessing the individual year/month/day is illustrated. Combine this with fopen/fputs/fgets and you should be good to go: http://www.amibroker.com/guide/afl/afl_view.php?id=225 Mike --- In [email protected], "J. Biran" <[EMAIL PROTECTED]> wrote: > > > Is there a simple way in afl to read / write to a file which > name includes the date? > i.e. myfile20080701.txt > > Joseph Biran > ____________________________________________ >
