PureBytes Links
Trading Reference Links
|
Boy, do I feel foolish!
Dennis Holverstott gave me the solution, and I failed to fully read
what he had recommended. I hate it when I do that!
Dennis, you're right - the problem I had encountered - writing
a file with one long line, instead of a line for each commodity -
was easily solved by adding the "newline" command. Michael
Stewart was also kind enough to point out my oversight.
I hope the rest of you on these lists aren't totally bored with
this topic, but the FileAppend command is not well documented,
and as I have learned today, it can be useful (when used
correctly).
Thanks again!
Jay
Dennis Holverstott had written:
>> >If LastBarOnChart then FileAppend ("c:\direct\filenam.csv",
>> > GetSymbolName + "," +
>> > numtostr(NetProfit,2) + "," +
>> > numtostr(NumWinTrades,0) + "," +
>> > numtostr(TotalTrades,0) + newline);
>
>> That did work, but produced a file with all of the data in one
>> long row.
>
>Did you include newline as in the example above? Newline is the
>fileappend equivalent of a carriage return.
>
> Dennis
|