Using StreamReader to read from a text file
<< Click to Display Table of Contents >> Using StreamReader to read from a text file |
Sometimes you may have data stored outside of NinjaTrader that you want to bring in and use for calculations. Using StreamReader will allow us to bring in the data stored in text files and allow us to do manipulations with them.
•Opening a text file with StreamReader
•Parsing Open-High-Low-Close data with date stamps from a file
•Determining current day Open-High-Low-Close after reading data from the text file with StreamReader
1.Download the file contained in this Help Guide topic to your PC desktop
2.From the Control Center window, select the menu Tools > Import > NinjaScript
3.Select the downloaded file