Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Export chart data to file
Collapse
X
-
Export chart data to file
Sierra Charts has this very useful ability to export chart data to a text file. So as an example, if I have the chart configured with 47 minute bars real trading hours only - it can export the OHLC data of each bar out to a file. Please tell me ninjatrader can do this...Tags: None
-
Included is a link which contains a script that will allow you to do exactly what you have described.
But actually StreamWriter shouldn't even be necessary for OHLC values, only indicator and other calculated values. If you simply want to upload price data, you can go to Command Center > Tools > Export > Historical DataOfficial NinjaScript reference code samples
- Likes 1
-
Cool. Thank you. The reason I need this is because I only want to load session specific bars, not the entire data history.
What do I do once I have loaded the indicator? I can see it in the indicator panel below and it says 'sample stream writer' but then what? Has it created the file already (where do I find it?)or do I need to do something further?
Comment
-
Not sure what OS you are using, but in windows you would go to File Explorer > Documents > Ninjatrader 8, and you should see a new file called "MyTestFile" assuming you did not change the name in the indicator script. Good Luck!
P.S. reloading this indicator repeatedly or loading a large amount of data can be CPU intensive, so try to be conservative about what you use it for.
- Likes 1
Comment
-
-
Hi, I was testing the indicator, it's great !
there is a way to add other indicators value in each row? e.g. bar poc, volumen, delta high, delta close, etc.
thank you so much.
best
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by bortz, 11-06-2023, 08:04 AM
|
47 responses
1,607 views
0 likes
|
Last Post
by aligator
Today, 07:22 PM
|
||
Started by jaybedreamin, Today, 05:56 PM
|
0 responses
9 views
0 likes
|
Last Post
by jaybedreamin
Today, 05:56 PM
|
||
Started by DJ888, 04-16-2024, 06:09 PM
|
6 responses
19 views
0 likes
|
Last Post
by DJ888
Today, 05:12 PM
|
||
Started by Jon17, Today, 04:33 PM
|
0 responses
6 views
0 likes
|
Last Post
by Jon17
Today, 04:33 PM
|
||
Started by Javierw.ok, Today, 04:12 PM
|
0 responses
15 views
0 likes
|
Last Post
by Javierw.ok
Today, 04:12 PM
|
Comment