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.
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).
Last edited by cclsys; November 20th, 2009 at 04:38 PM.