Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
NinjaTrader lagging after strategy analyzer is complete
Collapse
X
-
NinjaTrader lagging after strategy analyzer is complete
Hi, I'm having an issue with the performance of NinjaTrader after succesfully running a backtest via strategy analyzer. The strategy I am running uses multi-time-frame tick data, because of this it takes several hours to run, during this run NinjaTrader lags heavily, which is to be expected. The issue I'm having is that NinjaTrader continues to lag well after the backtest is complete, making analyzing the results extremely difficult. I don't see why NinjaTrader continues to use such high computational power? Should it not go back to performing normally?Tags: None
-
Hello Sudonega,
A possibility of what is happening is the computer has run out of memory and is now using part of the hard drive as memory (called page filing) which is much slower and causes the system to become very sluggish.
NinjaTrader relies on the garbage collection of .NET to automatically manage memory. The issue becomes that the garbage collection itself takes CPU and memory resources to decide what needs to be collected and released. If the system is page filing this can mean the garbage collection service itself has slowed to a crawl. If given enough time to manage the memory enough to stop page filing the system would eventually recover.
The amount of data (date range), amount of orders and setting of IncludeTradeHistoryInBacktest, and amount of new objects (especially drawing objects) generated in the code all contribute to the amount of memory being used.Chelsea B.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by arvidvanstaey, Today, 02:19 PM
|
4 responses
11 views
0 likes
|
Last Post Today, 04:08 PM | ||
Started by samish18, 04-17-2024, 08:57 AM
|
16 responses
60 views
0 likes
|
Last Post
by samish18
Today, 03:30 PM
|
||
Started by jordanq2, Today, 03:10 PM
|
2 responses
9 views
0 likes
|
Last Post
by jordanq2
Today, 03:23 PM
|
||
Started by traderqz, Today, 12:06 AM
|
10 responses
18 views
0 likes
|
Last Post
by traderqz
Today, 02:49 PM
|
||
Started by algospoke, 04-17-2024, 06:40 PM
|
5 responses
47 views
0 likes
|
Last Post Today, 02:36 PM |
Comment