Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Debugging & Backtesting

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

    Debugging & Backtesting

    Hello,

    I am attempting to debug a strategy using VS 2008.

    I have followed the "Visual Studio Debugging" directions here.

    I have successfully debugged an indicator that I apply to a chart, so I know that I have VS set up properly.

    When I try to debug a strategy by running a backtest in the Strategy Analyzer, VS doesn't stop at breakpoints.

    Any ideas? Is what I'm trying to do supported?

    Thanks!

    #2
    Unfortunately this is beyond the scope of what we provide support for. However, some users successfully did what you are trying to do. They might want to contribute.

    Comment


      #3
      Originally posted by NinjaTrader_Dierk View Post
      Unfortunately this is beyond the scope of what we provide support for.
      Please clarify. Do you mean that a strategy can only be debugged when running on live data, not in backtest?

      Thanks.

      Comment


        #4
        What is meant is that we do not provide support (help) for using VS for debugging.
        RayNinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Ray View Post
          What is meant is that we do not provide support (help) for using VS for debugging.
          You don't support it even though it's in your Help Guide?

          Any users out there who can help with this issue? Have you been able to use VS to debug a strategy while backtesting?

          Thanks for any pointers.

          Comment


            #6
            Hello,
            I have debugged strategies with VS2005 successfully (I have not VS2008 to try it)

            Comment


              #7
              Originally posted by cls71 View Post
              Hello,
              I have debugged strategies with VS2005 successfully (I have not VS2008 to try it)
              I managed to debug a strategy when connecting and adding the strategy to the Strategies tab. But I can't seem to debug a strategy that I run through the Strategy Analyzer (i.e., backtesting). Have you done this?

              (I don't care whether it's VS2005 or VS2008. I'll use either if it makes a difference.)

              Thanks!

              Comment


                #8
                Originally posted by Sienna View Post
                I managed to debug a strategy when connecting and adding the strategy to the Strategies tab. But I can't seem to debug a strategy that I run through the Strategy Analyzer (i.e., backtesting). Have you done this?

                (I don't care whether it's VS2005 or VS2008. I'll use either if it makes a difference.)

                Thanks!
                Yes. This is an example with a breakPoint into stategy code. There is not a loaded chart with the strategy. The running is into the strategy analyzer only.

                Greetings.

                PD: Of course, the debugging works also with the strategies over charts.

                Attached Files

                Comment


                  #9
                  Works fine on VS 2008 too. If you haven't already, test using SampleMACrossOver strategy first before trying your custom strategy.

                  Whitmark
                  whitmark
                  NinjaTrader Ecosystem Vendor - Whitmark Development

                  Comment


                    #10
                    Well, it does work. I don't know what I missed, but I started over as whitmark suggested and it does work: I can debug in the strategy analyzer using VS2008. Thanks for the support.

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by MarianApalaghiei, Today, 10:49 PM
                    1 response
                    8 views
                    0 likes
                    Last Post NinjaTrader_Manfred  
                    Started by love2code2trade, Yesterday, 01:45 PM
                    4 responses
                    28 views
                    0 likes
                    Last Post love2code2trade  
                    Started by funk10101, Today, 09:43 PM
                    0 responses
                    8 views
                    0 likes
                    Last Post funk10101  
                    Started by pkefal, 04-11-2024, 07:39 AM
                    11 responses
                    37 views
                    0 likes
                    Last Post jeronymite  
                    Started by bill2023, Yesterday, 08:51 AM
                    8 responses
                    46 views
                    0 likes
                    Last Post bill2023  
                    Working...
                    X