Need to Plot Historical Market Data

The format of the file would need to be something like
https://ninjatrader.com/support/helpGuides/nt8/?importing.htm#UnderstandingImportFileAndDataFormats


For example, I created the attached Grains.Last.txt with
Code:
cat Grains.txt | perl -n -e 'use warnings; use strict;
our @mmDays; our $prevCl; BEGIN { @mmDays = qw/0 31 28 31 30 31 30 31 31 30 31 30 31/; }
my $iline = $_; $iline =~ s/[",]//g;
my ($mm, $yyyy, $hi, $lo, $cl) = $iline =~ qr#^(\d\d)/(\d\d\d\d)\s+(\S+)\s+(\S+)\s+(\S+)\s+$#;
if ( !defined($cl) ) { next; }
if ( ! defined($prevCl) ) { $prevCl = $cl; }
print "$yyyy$mm$mmDays[$mm];$prevCl;$hi;$lo;$cl;0\n";
$prevCl = $cl;' > Grains.Last.txt
I don't have NinjaTrader installed, so I just looked at the output.
lol. And that's why I couldn't figure it out.
 
If it is useful to anyone, the historical data in Metastock format of these Indices can be downloaded here:

https://www.elitetrader.com/et/threads/free-historical-data-from-around-the-world.366141/


Down Jones Industrial (from 1897 to 2018)

Nasdaq 100 (1985-2018)

Nasdaq Composite (1971-2018)

Russel 1000 (1992-2018)

Russel 2000 (1987-2018)

Russel 3000 (1987-2018)

S & P 500 (1950-2018)

CAC 40 (1985-2018)

DAX (1959-2018)

FTSE 100 (1980-2018)

Ibex 35 (1985-2018)

P.S: bit by bit, I will add more
 
Back
Top