Convert H Data TS to NT - futures io
futures io

Convert H Data TS to NT

Discussion in NinjaTrader

    1. trending_up 1,425 views
    2. thumb_up 2 thanks given
    3. group 2 followers
    1. forum 1 posts
    2. attach_file 0 attachments

Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • 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 and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

Search this Thread

Convert H Data TS to NT

(login for full post details)
  #1 (permalink)
Oviedo Asturias/Espaņa
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL
Posts: 5 since Dec 2018
Thanks: 1 given, 8 received

Good night,

I need a program/script to convert "historical data" from Tradestation to Ninja (*.txt). I've been looking in the forums etc, but I haven't got anything.
If anyone has it, or knows the way to automate the conversion I would appreciate it greatly

input TS-outPut NT:

"Date", "Time", "Open", "High", "Low", "Close", "Up", "Down"
"Date" "Time"; "Open"; "High"; "Low"; "Close", "Up+Down" (dont include this line in output *)
19981218 084400; 4755.0;4755.0;4750 .0;4750.0;250

In essence it is:
1. Date format mm/dd/yyyy --> yyyymmdd
2. Character "," " " (space) and time format hh:mm:ss --> hhmmss
3. Rest of fields separated by "," -> ";"
4. The Up and Dow fields only-> Up+Down field
5. Oh, and the first line of the input F disappears in the output file (*)


Started this thread Reply With Quote
The following 2 users say Thank You to elopezh for this post:

Can you help answer these questions
from other members on futures io?
Questioning Conventional Wisdom
Treasury Notes and Bonds
Eurex Denali vs dxFeed
Sierra Chart
MacdBB V402 NT804 + gradient + pullback not working on N …
For the experts of Metastock
Platforms and Indicators
Experience with AGN (Introducing Broker)
(login for full post details)
  #2 (permalink)
Moscow + Moscow Oblast/Russia
Posts: 13 since Nov 2020
Thanks: 3 given, 8 received

if still relevant, you can try to write your own script using one of the high-level programming languages (Perl, Python, UNIX SHELL), which will convert files with quotes ...

Of course you will have to spend time studying regular expressions, but I think it is worth it, it will be useful for you in the future.

Reply With Quote

futures io Trading Community Platforms and Indicators NinjaTrader > Convert H Data TS to NT

Last Updated on December 3, 2020

Upcoming Webinars and Events

NinjaTrader Indicator Challenge!


Your Charts Should Speak To You w/Bob Cometta

Elite only

Our 12-year anniversary w/ $$,$$$ prizes (check soon)


Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada),
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