Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator: Using StreamReader to read from a text file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Indicator: 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.

    Key concepts in this example:
    • 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


    Important related documentation:


    Import instructions:

    NinjaTrader 8
    1. Download the file contained in this thread to your PC desktop
    2. From the Control Center window, select the menu Tools > Import > NinjaScript
    3. Select the downloaded file


    NinjaTrader 7
    1. Download the file contained in this thread to your PC desktop
    2. From the Control Center window, select the menu File > Utilities > Import NinjaScript
    3. Select the downloaded file and click Import.
    Attached Files
    Last edited by NinjaTrader_PatrickH; 02-26-2018, 03:59 PM.
    Josh P.NinjaTrader Customer Service

Latest Posts

Collapse

Topics Statistics Last Post
Started by knowmad, Today, 03:52 AM
0 responses
11 views
0 likes
Last Post knowmad
by knowmad
 
Started by tradingnasdaqprueba, Today, 03:42 AM
0 responses
8 views
0 likes
Last Post tradingnasdaqprueba  
Started by Haiasi, 04-25-2024, 06:53 PM
4 responses
63 views
0 likes
Last Post effraenk  
Started by ccbiasi, 11-23-2017, 06:06 AM
5 responses
2,204 views
0 likes
Last Post leodavis  
Started by kujista, Yesterday, 12:39 AM
2 responses
14 views
0 likes
Last Post kujista
by kujista
 
Working...
X