problem with reading data from txt file - NinjaTrader Programming | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming

problem with reading data from txt file
Started:May 11th, 2011 (04:00 PM) by Altas Views / Replies:1,539 / 2
Last Reply:May 11th, 2011 (04:29 PM) Attachments:1

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

problem with reading data from txt file

Old May 11th, 2011, 04:00 PM   #1 (permalink)
Trading Apprentice
Futures Experience: Beginner
Platform: Ninja Trader
Favorite Futures: TF
Posts: 1 since Mar 2011
Thanks: 1 given, 0 received

problem with reading data from txt file

Hi guys, I have a problem with reading text data from simple txt file.. I've found some examples on the NT forum, but It doesn't work
What I need...On the first bar of session, I need to check the txt file, find line with today's date and read number next to it.

This is how it's look like:
20110502 1,2
20110503 3,5
20110504 5
20110505 1
20110506 12,15
20110509 2
20110510 4,17

This is error log in the output window I got:
**NT** Error on calling 'OnBarUpdate' method for strategy 'readFile/d840533de11e43c99da7f464470ef589': wrong format of input string

there is a attachment with my script...
any Idea what is wrong?



Attached Files
Register to download File Type: txt readfile.txt (2.1 KB, 36 views)
Reply With Quote

Old May 11th, 2011, 04:00 PM   #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.


Old May 11th, 2011, 04:29 PM   #3 (permalink)
Elite Member
Futures Experience: Intermediate
Platform: NinjaTrader wt Rancho Dinero's profiling tools
Broker/Data: Stage 5 trading/AMP/Rithmic
Favorite Futures: ES, NQ
trendisyourfriend's Avatar
Posts: 3,599 since Oct 2009
Thanks: 2,924 given, 4,329 received

Check this indicator, you might find a few clues to resolve your puzzle:

Reply With Quote
The following 2 users say Thank You to trendisyourfriend for this post:

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming > problem with reading data from txt file

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

An Afternoon with FIO trader bobwest

Elite only

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Some questions about tape-reading CME data ptd26 Traders Hideout 24 November 14th, 2014 11:05 AM
Importing data as .txt file in Multicharts arjfca The Elite Circle 2 January 31st, 2011 06:15 PM
how do i make a txt file with ninja replay files? ceramictilepro Brokers and Data Feeds 2 May 13th, 2010 04:12 AM
anyone have data txt file for ninja 1-1-10 to tdy ceramictilepro Brokers and Data Feeds 8 May 12th, 2010 12:43 PM
Writing & reading data into/out of NT Saroj NinjaTrader Programming 1 September 12th, 2009 03:55 PM

All times are GMT -4. The time now is 11:52 AM.

Copyright © 2016 by All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts

Page generated 2016-10-25 in 0.10 seconds with 20 queries on phoenix via your IP