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 Skifree, Today, 03:41 AM
|
1 response
2 views
0 likes
|
Last Post
by Skifree
Today, 03:42 AM
|
||
Started by usazencort, Today, 01:16 AM
|
0 responses
1 view
0 likes
|
Last Post
by usazencort
Today, 01:16 AM
|
||
Started by kaywai, 09-01-2023, 08:44 PM
|
5 responses
603 views
0 likes
|
Last Post Today, 12:32 AM | ||
Started by xiinteractive, 04-09-2024, 08:08 AM
|
6 responses
23 views
0 likes
|
Last Post Today, 12:31 AM | ||
Started by Pattontje, Yesterday, 02:10 PM
|
2 responses
23 views
0 likes
|
Last Post
by Pattontje
Yesterday, 11:49 PM
|
Comment