Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
automatically save the output log into your local machine as a .txt
Collapse
X
-
Hello Boonfly8,
Thank you for your post.
Are you referring to saving the output from the NinjaScript Output Window?
There's not a way to save this automatically; however, saving the output as a .txt file is very easy - all you need to do is right click in the window > Save As. Name your file (it should automatically name something like "NinjaScript Output 2_27_2019 2_20 PM" and save it to your Documents folder or where ever else it will be simple for you to find.
Please let us know if we may be of further assistance to you.
-
Hello xTrader1,
Thank you for your reply.
The closest you could get from code to automatically saving the output window would be to use StreamWriter to write whatever information you want to save automatically to a file. This would not necessarily print all the info from the Output window as some of those messages come from within NinjaTrader but you could certainly monitor for errors, times, prices, etc. and write those to a file. Here's an example from our help guide of using a StreamWriter to print some bar information to a file:
This may be adapted to your needs.
Please let us know if we may be of further assistance to you.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
174 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
329 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
252 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
356 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
182 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|

Comment