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.Kate W.NinjaTrader Customer Service
-
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.Kate W.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Waxavi, Today, 02:10 AM
|
1 response
16 views
0 likes
|
Last Post Today, 03:03 PM | ||
Started by Kaledus, Today, 01:29 PM
|
5 responses
13 views
0 likes
|
Last Post Today, 02:56 PM | ||
Started by Waxavi, Today, 02:00 AM
|
1 response
12 views
0 likes
|
Last Post Today, 02:53 PM | ||
Started by alifarahani, Today, 09:40 AM
|
5 responses
23 views
0 likes
|
Last Post Today, 02:53 PM | ||
Is it possible to have a drawing, such as a line, cycle through different colors?
by gentlebenthebear
Started by gentlebenthebear, Today, 01:30 AM
|
3 responses
17 views
0 likes
|
Last Post Today, 02:41 PM |
Comment