It just isn't practical to manually click the buttons for 250 stocks one at a time.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
automate the export of data
Collapse
X
-
automate the export of data
I want to export data to txt files for a number of stocks, and I need to do this weekly. I know NT allows us to export data using the historical data manager, but is there anyway to automate this process with a script? Or can we at least export data for groups of stocks all at once?
It just isn't practical to manually click the buttons for 250 stocks one at a time.Tags: None
-
Hello MM345,
Yes, this would be possible to do.
Below is a link to a reference sample that demonstrates writing historical data to a file.
As well as a link to all of the reference samples.
Following are links to all available NinjaScript reference samples within this forum section: Strategy Reference Samples (NinjaTrader 8) - also applicable to NT7 Using a time filter to limit trading hours (http://www.ninjatrader.com/support/forum/showthread.php?t=3226) Using multiple entry/exit signals simultaneously
For multiple series, below is a link to the help guide on the AddDataSeries() method.
A link to the help guide on BarsInProgress.
And a link to the help guide on Multi-Time Frame & Instruments. Please see the section 'How Bar Data is Referenced', and 'Accessing the Price Data in a Multi-Bars NinjaScript'.
Last, below is a link to an official reference sample that demonstrates how to add intra-bar granularity.
Chelsea B.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
163 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
82 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
125 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
206 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
185 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
Comment