Announcement

Collapse
No announcement yet.

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.
    DierkNinjaTrader Customer Service

    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 pilotfo, Today, 12:50 PM
                    1 response
                    7 views
                    0 likes
                    Last Post NinjaTrader_ChelseaB  
                    Started by DTSSTS, Today, 11:35 AM
                    2 responses
                    8 views
                    0 likes
                    Last Post DTSSTS
                    by DTSSTS
                     
                    Started by sinpeople, Today, 07:20 AM
                    2 responses
                    5 views
                    0 likes
                    Last Post NinjaTrader_ChelseaB  
                    Started by Frank1000, Today, 03:05 AM
                    5 responses
                    12 views
                    0 likes
                    Last Post Frank1000  
                    Started by fscabrera03, Yesterday, 01:18 PM
                    2 responses
                    25 views
                    0 likes
                    Last Post NinjaTrader_ChelseaB  
                    Working...
                    X