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)
Mike, your forum is amazing. This morning I decided to try to export data from NT into text files so I could work on coding simple patterns into TS in order to do easy P-L analysis. I find the NT strategy writing and analysis interface too hard at this point.
So I managed to get your strategy to output fine after a few hiccups, but now want to now how to get it to first erase all previous data and then append in the new run. I've been on the MS C+ area but just can't understand anything there. I've managed to delete the file but then it only prints out one line.
If you could show me how to write that out properly would be much appreciated.
Can you help answer these questions from other members on NexusFi?
Thanks. Of course. I thought maybe there was a different word I should be using. But also I didn't know about File.CreateText.
Apologies for multiple posts. Had connection timeout problems and some of them were not showing.
PS What seems to work is to put the File.Delete in the Initialize Section but the File.Append in the OnBarUpdate section.
Now it works great. I can export intraday data to a file and read it in TS where I can much more easily code in and evaluate simple ideas in strategies versus indicators. This single thing will save me hours/weeks of delays in testing which I have basically avoided since moving to Ninja a year ago when TS closed down accounts to people in certain Canadian provinces for reasons which I have never been able to determine (no doubt local financial industry lobbying).
It can pull quotes from eSignal or IQFeed and create CSV files.
suprsnipes
Hi Big Mike,
I have a question regarding this code. I appreciate the effort you have put into this and had no problem setting this up but I was hoping you could answer a question for me.
As the data is stored in a .txt file do you have any suggestions as to how I could access this file and use the data within Excel in real-time for further analysis?