[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Print to File Question



PureBytes Links

Trading Reference Links

At 3:36 PM -0400 5/21/98, Neal Chabot wrote:

>As far as I can determine, it is not possible to print a file from an
>indicator
>using the "Print-File" statement and have the symbol of the stock or future
>included in the text file.
>
>Is this correct.
>
>It is easy to hard code in the name of the stock, but to automatically
>have the
>symbol included from whatever symbol you place in the window, that is the
>question.  It would seem that the "GetSymbol" function should work here, but I
>have not been able to get it to work.
>
>Does anyone have something that works?
>

I am not sure what you use that doesn't work. I use the following syntax
all the time:

    Print(Date:6:0,", ", Value1:4:2, ", ", <etc>, ", ", GetSymbolName);

This prints to the print log with commas between fields. You can then elect
to print this on any character printer and direct the data to a file in
Windows. I usually use the Epson LQ-200 driver. (It inserts a few initial
control characters which are easy to exclude in the import into Excel.)

The file can then be opened in Excel using a comma delimited format. Works
fine. I always put the symbol name at the end of the line since it prints
the variable number of characters corresponding to the symbol.

Bob Fulks