Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Guidance on Strategy Debug Process

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

    Guidance on Strategy Debug Process

    Hello Ninja Support Forum,

    I am new to strategy development. I successfully imported a strategy from a third person. This strategy is applied via a 5 minute chart and a 1 Tick bars object is added. I want to make a small change to this strategy.

    What is the best way to debug this change? I am guessing that I should record the data from a LIVE session from IB and then use the Market Replay function to debug this change.

    Please advise me on the best practical way to debug this strategy code change.

    Thanks,
    Steve

    #2
    steve,

    I am not sure what you are attempting to do here. Debugging is typically needed only if you are sure there is an error in the code. If you are wanting to test the code to ensure it still works, I would suggest doing as you say, i.e. testing it in market replay, and any other way you plan on using it.

    When you compile the strategy it will immediately let you know if there are any obvious errors. Sometimes however the compiler may miss something, and in this case you can use Print statements as well as Try/catch.

    Adam P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    47 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    15 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    21 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    23 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X