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

[amibroker] "Refreshing" a file: Write or Append?



PureBytes Links

Trading Reference Links


Hi all,

I just managed to get automatic trading to work with the IB
Controller, everyone should check this out, its amazing. I would like
to loop over a watchlist of symbols and print to a file some buy and
sell points for those symbols. The problem is if i fopen the file in
write mode ("w"), the file will be overwritten everytime the AFL is
executed for each symbol and i end up with just one line for the last
symbol processed. If I use append mode ("a"), and perform the
operation say once a minute, i will get all the entry points repeated
for each time the scan is run. What i would like is to have one file
that is "refreshed" each time the scan is run (no repetetion of
symbols for each time i run the scan. Whats the best way to do this? 

Thanks in advance
g





------------------------ Yahoo! Groups Sponsor --------------------~--> 
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/