Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Catching errors in realtime
Collapse
X
-
Catching errors in realtime
Hi guys is there a way to catch real-time errors that a strategy generates and print the lines of code thats causing it without stopping the strategy?Tags: None
-
Hello elitetradernyc,
If you run into a real-time exception NinjaTrader will automatically terminate the script and there is not a method for disabling that. The best method to find out what is going on would be to use the Try-Catch block to be able to find out what the error is and then be able to handle it from there.
Here is a link to a thread that has a reference sample on using a Try-Catch Block that you may view.
JCNinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
80 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
46 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
66 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment