• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Fix the bug

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

    Fix the bug

    Hello, when I run my backtesting, Ninja shows me this, can anybody fix it? It's urgent. This means, that system did not trade at this periods... I cannot find my developer, who did this.

    Thanks

    #2
    This looser (I mean developer) has disappeared

    Comment


      #3
      Hello U0000999,

      Thank you for your post.

      If you open up a NinjaScript Editor window, are you able to see the strategy listed under Strategies? While we aren't necessarily able to debug a strategy for you, I may be able to look at the code and tell you why it may be doing that. However, many third party NinjaScript items are distributed as compiled assemblies. If that's the case, you wouldn't see it listed in the NinjaScript Editor and would need to get in contact with the original developer as the code would not be accessible.

      Thanks in advance; I look forward to assisting you further.
      Kate W.NinjaTrader Customer Service

      Comment


        #4
        Should I send you a code?

        Comment


          #5
          Hello U0000999,

          Thank you for your reply.

          If you're able to access it in the NinjaScript Editor, you should be able to export the script from Tools > Export > NinjaScript AddOns and attach the resulting .Zip file to your reply. I'd be happy to take a look and see what may be occurring. Also, what instrument and interval of a chart were you backtesting it on?

          Thanks in advance; I look forward to assisting you further.
          Kate W.NinjaTrader Customer Service

          Comment


            #6
            Usually ES, NQ and mini DAX, but they could be CL and others

            Comment


              #7
              This add-on emulates trades on historical tick data (depends on the selected timeframe), writes the results of trading in a text file.

              I think the mistake is that orders are not executed for some reason or continuation chart has mistakes.

              P.S.: Also to run the strategy, you should copy riskparameter.cs file to C:\Documents\Ninjatrader8\ folder
              Attached Files

              Comment


                #8
                Hello U0000999,

                Thanks for your reply.

                The attached scripts are really too large for us to give any feedback. If you can reduce so it only has the code necessary to reproduce the issue with all other code removed, then we could offer some further insight.

                I suggest to focus on this issue:

                The strategy is submitting orders, but orders are submitting during X time frame.

                In order to investigate further we should confirm the following:

                1. Order methods are being reached. This would be done using prints to verify that the logic is allowing the order methods to be reached

                2. If the order methods are reached, but no orders are submitted, please test again with TraceOrders enabled so you can receive hints if the order was ignored due to a rule of the Managed Approach.

                I've included some tips for debugging below. The Playback Connection can be used to replay data as if it were realtime.

                Debugging Tips - https://ninjatrader.com/support/help...script_cod.htm

                TraceOrders - https://ninjatrader.com/support/help...aceorders2.htm

                Debugging in the Strategy Builder - https://drive.google.com/file/d/1mTq...w?usp=drivesdk

                Playback Connection - https://ninjatrader.com/support/help...connection.htm

                Debugging Demo - https://drive.google.com/file/d/1rOz...w?usp=drivesdk

                We look forward to assisting.
                JimNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by AspenHiker, Today, 08:37 AM
                0 responses
                2 views
                0 likes
                Last Post AspenHiker  
                Started by dshalom9, Today, 08:36 AM
                0 responses
                2 views
                0 likes
                Last Post dshalom9  
                Started by StarTrader, 07-11-2020, 11:27 AM
                2 responses
                14 views
                0 likes
                Last Post StarTrader  
                Started by rtwave, Yesterday, 04:11 PM
                1 response
                8 views
                0 likes
                Last Post NinjaTrader_PaulH  
                Started by sachin shetty, 07-11-2020, 08:49 PM
                1 response
                21 views
                0 likes
                Last Post NinjaTrader_PaulH  
                Working...
                X