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