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 CarlTrading, Yesterday, 09:41 PM
|
1 response
14 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
31 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
30 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|
||
|
Started by CaptainJack, 03-25-2026, 09:53 PM
|
0 responses
34 views
0 likes
|
Last Post
by CaptainJack
03-25-2026, 09:53 PM
|
||
|
Started by CaptainJack, 03-25-2026, 09:51 PM
|
0 responses
19 views
0 likes
|
Last Post
by CaptainJack
03-25-2026, 09:51 PM
|
Comment