Is there any way to import historical data specified by an instrument symbol map (rather than its name) programatically from within a NinjaScript?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Import Historical Data from Code
Collapse
X
-
Hello Zeos6,
Thanks for the post.
There is not a supported way to access the symbol mappings for instruments. For historical data to be readable in NinjaTrader, it must be imported from the user interface because importing converts a comma-separated .txt file to a special format, so that would not be possible through NinjaScript.
Please let me know if I may assist further.Chris L.NinjaTrader Customer Service
-
Thanks for the reply ChrisL.
Just one more item. Since the Bars object represents the data in the historical repository, is there a programming way we can see what data is actually in the repository, and can we assign the Bars object to different data in the repository?
Comment
-
Hello Zeos6,
Thanks for the follow-up.
The only way to load additional data would be to use AddDataSeries()
The data you need must be determined at compile time since the parameters of AddDataSeries must be hardcoded and not reliant on other properties.
Some pure .NET framework would need to be used to access the ..\Documents\NinjaTrader 8\db directory and do computations on the data. Keep in mind one would need to decipher the hex form of historical data that is stored in .ncd files.
Please let me know if I can help further.Chris L.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by algospoke, Yesterday, 06:40 PM
|
2 responses
19 views
0 likes
|
Last Post
by algospoke
Today, 07:04 PM
|
||
Started by ghoul, Today, 06:02 PM
|
3 responses
14 views
0 likes
|
Last Post Today, 06:43 PM | ||
Started by jeronymite, 04-12-2024, 04:26 PM
|
3 responses
44 views
0 likes
|
Last Post
by jeronymite
Yesterday, 10:10 PM
|
||
Started by Barry Milan, Yesterday, 10:35 PM
|
7 responses
20 views
0 likes
|
Last Post Today, 06:16 PM | ||
Started by AttiM, 02-14-2024, 05:20 PM
|
10 responses
180 views
0 likes
|
Last Post
by jeronymite
Today, 06:11 PM
|
Comment