Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Catching errors in realtime

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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?

    #2
    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

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ghoul, Today, 06:02 PM
    2 responses
    12 views
    0 likes
    Last Post ghoul
    by ghoul
     
    Started by jeronymite, 04-12-2024, 04:26 PM
    3 responses
    44 views
    0 likes
    Last Post jeronymite  
    Started by Barry Milan, Yesterday, 10:35 PM
    7 responses
    20 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by AttiM, 02-14-2024, 05:20 PM
    10 responses
    180 views
    0 likes
    Last Post jeronymite  
    Started by DanielSanMartin, Yesterday, 02:37 PM
    2 responses
    13 views
    0 likes
    Last Post DanielSanMartin  
    Working...
    X