Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Loading historical data for S&P 500 stocks
Collapse
X
-
Hello Kc0793,
You will need to have a data provider that will supply you with the 1 year of data for your needs.
Additionally, there is no other supported way to add instruments to the code for analysis, then using the Add() method.
However, you can access the Instrument List to create a foreach loop for the items and add the instruments that way in the Initialize() method -
Code:NinjaTrader.Cbi.InstrumentList list1 = NinjaTrader.Cbi.InstrumentList.GetObject("FOREX"); foreach (Instrument i in list1.Instruments) { Add(i.FullName, PeriodType.Minute, 5); }
Let me know if I can be of further assistance.Cal H.NinjaTrader Customer Service
Comment
-
Hi Cal, thank you for the reply. I wasnt aware of the NinjaTrader.Cbi.InstrumentList object, thanks for pointing that out.
With regards to the other question on building up the historical database for all 500 stocks, the data provider is not the issue - I can currently connect to Kinetick, load a chart of any of the individual stock for a year, and that ensures that the data is stored as historical data. The question is, is there a quick way of doing this for 500 stocks?
Comment
-
Kc0793,
If you can get the data in text format you can importing the data that way.
http://www.ninjatrader.com/support/h...?importing.htm
However, the quickest way would be to load the symbols into a chart for the initial download to get them and use for your needs.Cal H.NinjaTrader Customer Service
Comment
-
Thank you Cal. For both the possible ways (importing data in txt format or loading them into a chart), am I right in thinking that this would need to happen one by one,manually, for each of the 500 stocks? Any way to do them all at once? I guess what I am asking is can I select a bunch of symbols and open charts of them all at once?
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by kaywai, 09-01-2023, 08:44 PM
|
5 responses
601 views
0 likes
|
Last Post Today, 12:32 AM | ||
Started by xiinteractive, 04-09-2024, 08:08 AM
|
6 responses
22 views
0 likes
|
Last Post Today, 12:31 AM | ||
Started by Pattontje, Yesterday, 02:10 PM
|
2 responses
18 views
0 likes
|
Last Post
by Pattontje
Yesterday, 11:49 PM
|
||
Started by flybuzz, 04-21-2024, 04:07 PM
|
17 responses
230 views
0 likes
|
Last Post
by TradingLoss
Yesterday, 11:45 PM
|
||
Started by agclub, 04-21-2024, 08:57 PM
|
3 responses
17 views
0 likes
|
Last Post
by TradingLoss
Yesterday, 11:42 PM
|
Comment