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 argusthome, 03-08-2026, 10:06 AM
|
0 responses
78 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
45 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
29 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
32 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
64 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment