Thank you.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Clear or disable writing orders to log
Collapse
X
-
Clear or disable writing orders to log
Hello! I have a strategy that uses many orders and this orders are also modified many times (f.e. 3-5 times for a second). All this things are writing in to the logs and it "destroys" my free disk space. After one hour of strategy working I have no space and the problem is - too big Log files. Can I clear it automatically or maybe disable to write all that info? Or set some limits? It's sad that I cant run my Strategies because of logs.
Thank you.Tags: None
-
Hello YevhenShynkarenko,
Thanks for your post.
Excessive use of Log() can result in performance issues. From the help guide for Log() is this: Warning: Each call to this method creates a log entry which takes memory to keep loaded in the Log tab of the Control Center. Excessive logging can result in huge portions of memory being allocated to display the log messages. Please see the NinjaScript section of the Performance Tips article for more information. https://ninjatrader.com/support/helpGuides/nt8/?log.htm
Here is a link to out performance tips: https://ninjatrader.com/support/help...ance_tips2.htm
It would be better to send your output info to the New>Ninjascript output window using Print or PrintTo:
You can conditionally send prints by using a bool input that you can turn on to enable the strategy to output as needed for diagnostics.
If you want to continuously print all of your order info, you may want to use a streamwriter and send the info to an added drive of a larger capacity. Here is a link to a an example of using Streamwriter: https://ninjatrader.com/support/help...o_write_to.htm
Paul H.NinjaTrader Customer Service
-
Originally posted by NinjaTrader_PaulH View PostHello YevhenShynkarenko,
Thanks for your post.
Excessive use of Log() can result in performance issues. From the help guide for Log() is this: Warning: Each call to this method creates a log entry which takes memory to keep loaded in the Log tab of the Control Center. Excessive logging can result in huge portions of memory being allocated to display the log messages. Please see the NinjaScript section of the Performance Tips article for more information. https://ninjatrader.com/support/helpGuides/nt8/?log.htm
Here is a link to out performance tips: https://ninjatrader.com/support/help...ance_tips2.htm
It would be better to send your output info to the New>Ninjascript output window using Print or PrintTo:
You can conditionally send prints by using a bool input that you can turn on to enable the strategy to output as needed for diagnostics.
If you want to continuously print all of your order info, you may want to use a streamwriter and send the info to an added drive of a larger capacity. Here is a link to a an example of using Streamwriter: https://ninjatrader.com/support/help...o_write_to.htm
Comment
-
Hello YevhenShynkarenko,
Thanks for your reply.
I apologize for misunderstanding.
Please confirm that you are seeing both the Log and Trace folder with large sized log and trace files (perhaps a screenshot of the directory of each).
There are no options to turn off system logging. We do not recommend deleting the log and trace files in case you do need support.
If you have an offline storage, you could copy those files to that and then remove all but the latest ones from the log and trace folders.
Paul H.NinjaTrader Customer Service
Comment
-
Originally posted by NinjaTrader_PaulH View PostHello YevhenShynkarenko,
Thanks for your reply.
I apologize for misunderstanding.
Please confirm that you are seeing both the Log and Trace folder with large sized log and trace files (perhaps a screenshot of the directory of each).
There are no options to turn off system logging. We do not recommend deleting the log and trace files in case you do need support.
If you have an offline storage, you could copy those files to that and then remove all but the latest ones from the log and trace folders.
Comment
-
Hello robz7575,
Thanks for your post and welcome to the NinjaTrader Forums!
There are no options to turn off system logging. We do not recommend deleting the log and trace files in case you do need support.
If you have offline storage, you could copy those files to that and then remove all but the latest ones from the log and trace folders.
Each time you start NinjaTrader, a new log and trace file are created.
Paul H.NinjaTrader Customer Service
Comment
-
Originally posted by NinjaTrader_PaulH View PostHello robz7575,
Thanks for your post and welcome to the NinjaTrader Forums!
There are no options to turn off system logging. We do not recommend deleting the log and trace files in case you do need support.
If you have offline storage, you could copy those files to that and then remove all but the latest ones from the log and trace folders.
Each time you start NinjaTrader, a new log and trace file are created.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by adeelshahzad, Today, 11:49 AM
|
6 responses
23 views
0 likes
|
Last Post
by mcosta72
Today, 04:35 PM
|
||
Started by sidlercom80, 05-05-2020, 07:20 AM
|
4 responses
304 views
0 likes
|
Last Post
by Bidder
Today, 04:35 PM
|
||
Started by andrew56, 11-21-2017, 11:57 AM
|
6 responses
954 views
0 likes
|
Last Post
by Bidder
Today, 04:34 PM
|
||
Indicator categories collapse, CategoryDefaultExpanded/CategoryExpanded has no effect
by Shai Samuel
Started by Shai Samuel, 08-09-2022, 04:41 AM
|
6 responses
184 views
1 like
|
Last Post
by Bidder
Today, 04:32 PM
|
||
Started by TheTradingMantis, 10-31-2017, 03:18 PM
|
5 responses
1,251 views
0 likes
|
Last Post
by TheAngryCube
Today, 04:06 PM
|
Comment