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 ghoul, Today, 06:02 PM
|
2 responses
12 views
0 likes
|
Last Post
by ghoul
Today, 06:36 PM
|
||
Started by jeronymite, 04-12-2024, 04:26 PM
|
3 responses
44 views
0 likes
|
Last Post
by jeronymite
Yesterday, 10:10 PM
|
||
Started by Barry Milan, Yesterday, 10:35 PM
|
7 responses
20 views
0 likes
|
Last Post Today, 06:16 PM | ||
Started by AttiM, 02-14-2024, 05:20 PM
|
10 responses
180 views
0 likes
|
Last Post
by jeronymite
Today, 06:11 PM
|
||
Started by DanielSanMartin, Yesterday, 02:37 PM
|
2 responses
13 views
0 likes
|
Last Post Today, 05:26 PM |
Comment