Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Inserting historical data to NJ from text file using C#
Collapse
X
-
Hello Farmer George,
Please let me know if you have any questions after reviewing the reference sample and attempt to implement this for your .csv file.
Leave a comment:
-
Originally posted by NinjaTrader_PatrickH View PostHello Farmer George,
If you are running NinjaTrader 7 you would download the file SampleStreamReader_NT7.zip.
Leave a comment:
-
Hello Farmer George,
If you are running NinjaTrader 7 you would download the file SampleStreamReader_NT7.zip.
Leave a comment:
-
Originally posted by NinjaTrader_ChelseaB View PostHi globalscholar,
You can read from a file, parse that information, and then add the data to a custom dataseries or an array.
Below is a link to a reference sample that reads data from a file.
Also, here is a link to a reference sample that uses a custom dataseries.
http://www.ninjatrader.com/support/f...ead.php?t=7299
Leave a comment:
-
Hi globalscholar,
You can read from a file, parse that information, and then add the data to a custom dataseries or an array.
Below is a link to a reference sample that reads data from a file.
http://www.ninjatrader.com/support/f...ead.php?t=3476
Also, here is a link to a reference sample that uses a custom dataseries.
http://www.ninjatrader.com/support/f...ead.php?t=7299
Leave a comment:
-
Hi,
You said it is not possible if it is not the current running script. So, do you mean that it is possible for me to push History for the current instance of script. If yes, can you please tell me how? . I need it to load the data easily without manual intervention, via code, to simplify things.
Regards,
GS
Leave a comment:
-
Hello globalscholar,
If you are trying to add historical data to NinjaTrader (and not to a specific running instance of a script) this will not be possible.
To import you must use the Historical Data Manager with an importable txt file.
http://www.ninjatrader.com/support/h.../importing.htm
Leave a comment:
-
Load History data into Ninjatrader - C#
Is there a way to push csv/txt history data into NinjaTrader from a C# program? . I know there is a way to do it manually. Can you please tell me how to do it via code?
Leave a comment:
-
Hi smyaseen,
Originally posted by smyaseen View PostHi,
I need to develop a C# program which insert the historical data (date, time, high, low, close, volume) from a txt or csv file to NJ. I tried to use Ninjatrader.Client.dll but unable to import historical data row. Please help.
Regards,
S.M.Yaseen.
If you are wanting to import the data as historical data:
You can manually import historical data as per the instructions at the link below.
http://www.ninjatrader.com/support/h.../importing.htm
Please note that the data needs to be in a certain format, see below.
Tick Format
Each tick must be on its own line and fields must be separated by semicolon (.
The format is:
yyyyMMdd HHmmss;price;volume
Sample data:
20061107 000431;1383.00;1
20061107 000456;1383.25;25
20061107 000456;1383.25;36
20061107 000537;1383.25;14
If you are wanting to read the data from the file to store in memory and use for an indicator without importing the data as historical data, you can do this with the StreamReader.
Below is a link to an official reference sample on using StreamReader.
http://www.ninjatrader.com/support/f...ead.php?t=3476
Please let me know if I can be of further assistance.
Leave a comment:
-
Inserting historical data to NJ from text file using C#
Hi,
I need to develop a C# program which insert the historical data (date, time, high, low, close, volume) from a txt or csv file to NJ. I tried to use Ninjatrader.Client.dll but unable to import historical data row. Please help.
Regards,
S.M.Yaseen.
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by geddyisodin, Today, 05:20 AM
|
2 responses
16 views
0 likes
|
Last Post
by geddyisodin
Today, 08:44 AM
|
||
Started by hazylizard, Today, 08:38 AM
|
0 responses
6 views
0 likes
|
Last Post
by hazylizard
Today, 08:38 AM
|
||
Started by Max238, Today, 01:28 AM
|
5 responses
42 views
0 likes
|
Last Post
by Max238
Today, 08:30 AM
|
||
Started by giulyko00, Yesterday, 12:03 PM
|
3 responses
13 views
0 likes
|
Last Post Today, 08:26 AM | ||
Started by habeebft, Today, 07:27 AM
|
1 response
16 views
0 likes
|
Last Post Today, 08:08 AM |
Leave a comment: