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

Re: Writing to a file from an ela



PureBytes Links

Trading Reference Links

>Subject:         Re: Writing to a file from an ela
>  Date:         Sat, 17 Jul 1999 08:39:47 -0400
>  From:         Bob Fulks <bfulks@xxxxxxxxxxxx>
>    To:         "Jay Mackro" <jmackro@xxxxxxxxxxxx>
>    CC:         <omega-list@xxxxxxxxxx>
>
>At 10:44 PM -0500 7/16/99, Jay Mackro wrote:
><snip>
>
>>The problem is that TradeStation overwrites the file each
>>time the system runs on the next chart.  It doesn't keep
>>adding rows - as it does when a system/indicator writes to
>>the print log.  So, I was left with a file that just had one row
>>- which just contained data for the last chart run.
>>
>>Does anyone know a way around this (yea, I know - buy
>>Portfolio Analyizer)  For example, is there a way I can
>>write a "new line" command, so when the file is re-opened
>>the next time around, the system/indicator  will begin to
>>write at record number N + 1 ?
>
>
>Why not just write to the print log. You can then "print" the print 
>log to a "generic character printer" but assign the printer to a 
>file. This will allow you to see the print log as it is running to 
>make sure everything is OK then save it if it looks OK.
>
>You might want to clear the print log before your run also.
>
>Bob Fulks

Why not use FileAppend ? ? ?  I write several reports off several
different workspaces into the same daily report file.  Works fine.

  FileAppend("c:\omega\dailyrpt\"+NumtoStr(date,0) + ".rpt", NewLine
	...


donc