Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Re-direct, duplicate or Read "Output Window" data to File
I need to get the data printed to NinjaTraders output window to a file for processing.
It contains data from a couple of stategies at different timeframes.
Re-directing the data to a file would be ideal as, I can copy the window data in realtime now but,
the file gets lengthy for continuous copying and if I could just append a file,
I could delete lines as they are processed.
Any help for a lower/midlevel programmer would be appreciated.
Thx in advance...
Can you help answer these questions from other members on NexusFi?
Thx 4 the replies guys...
Sorry I didn't follow up sooner but, I just checked my email and saw that there were other replies.
I thought Big Mike's response was probably the the end as I had "Thanked" him.
I have written the strategies myself and needed to pull them together.
I was able to accomplish it using StreamWriter, not without much hair pulling however..
It took alot of permutations to figure out what was needed to ensure that the appropriate files
were open or closed at the proper times and that conflicts involving reading & writing at the same time
was averted.
Finally waded through Dispose(), Flush(), Close() ect. to keep resources used at a minimum.
Also, the "try"{ }, "catch"{ } for error handling was helpful.
Anyway, it is working now and I carry on with a thorough testing..
Thx again for the support guys. This is why, this is the best support site bar none...