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

Urgent: Ninjatrader Skipping Strategy Entries

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

    Urgent: Ninjatrader Skipping Strategy Entries

    Attached are images of my "Trade Performance" tab and my "Strategy Performance" Tab. It is clear from my account balance and the Trade Performance tab that Ninjatrader did not place any trades from 7:29AM and 10:02AM. Meanwhile the strategy performance tab shows the strategy should have taken several more trades during this time period. The strategy was enabled and not tampered with for the duration of this time period. This also happened during other time periods, but this was the most noticeable. Why is ninjatrader skipping these trades? It is causing the reality of the strategy's performance to be much worse than it should be. This is not slippage but entire skipped trades.
    How do I resolve this to get ninjatrader to take the same entries shown in the strategy performance tab?
    Please see attached.

    #2
    Hello thereyoflite,

    Thanks for your post.

    Your attachments are not visible.

    When you applied your strategy for live trading, what color was the strategy name in the strategy tab? If the strategy name was yellow then it was waiting to close a historical position. If it was green then the strategy would be ready to trade live. If it was black then that suggests it was not or did not stay enabled.

    Are there any errors showing in the "Log" tab of the NinjaTrader control center related to your strategy? Any errors would need to be corrected.

    If the strategy name is green and there are no errors in the log then that would suggest the issue is with the strategy itself. To resolve we would suggest debugging your strategy by enabling traceorders and adding print statements to validate that your expected true entry conditions are indeed true.
    Reference: https://ninjatrader.com/support/help...script_cod.htm
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      When beginning the strategy, I selected "Immediately submit, synchronize account." I can see the orders submitted as a result, but these are not the orders in question. The strategy color was green. There are no errors in the log tab of the control center. I have reattached the images showing the difference in strategy performance vs. trade performance

      Trade Performance: Click image for larger version

Name:	Screen Shot 2021-05-25 at 2.42.15 PM.png
Views:	176
Size:	298.6 KB
ID:	1157564
      Strategy Performance:

      Click image for larger version

Name:	Screen Shot 2021-05-25 at 2.41.57 PM.png
Views:	161
Size:	470.0 KB
ID:	1157565

      Comment


        #4
        Hello thereyoflite,

        Thanks for your reply.

        With that confirmation the next step then would be:

        "If the strategy name is green and there are no errors in the log then that would suggest the issue is with the strategy itself. To resolve we would suggest debugging your strategy by enabling traceorders and adding print statements to validate that your expected true entry conditions are indeed true.
        Reference: https://ninjatrader.com/support/help...script_cod.htm"
        Paul H.NinjaTrader Customer Service

        Comment


          #5
          Hello,

          The strategy was made completely within strategy builder, I have gone back to check the box for "trace orders" under "Default Properties" in strategy builder. What are the following steps in evaluating what's going wrong? Both strategy performance and trade performance are based on the same strategy running on the same settings.

          Comment


            #6
            Hello thereyoflite,

            Thanks for your reply.

            For reference, what bar type, bar size, and instrument(s) are you testing?

            You would need to add print statements to your strategy to print out key values. These are the values of the conditions used in the entry condition sets. By looking at these values used in the conditions you may be able to see when/why a trade did or did not occur.

            I would suggest creating a new set without conditions and constructing a print statement that will output all of the values used in your entry set(s) so that on every OnBarUpdte() you will get a print statement showing the values that the strategy builder had on that bar.

            Here is a short video that demonstrates doing just that: https://paul-ninjatrader.tinytake.co...NV8xMDk5MDc5Nw

            Paul H.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by llanqui, Today, 03:53 AM
            0 responses
            2 views
            0 likes
            Last Post llanqui
            by llanqui
             
            Started by burtoninlondon, Today, 12:38 AM
            0 responses
            10 views
            0 likes
            Last Post burtoninlondon  
            Started by AaronKoRn, Yesterday, 09:49 PM
            0 responses
            14 views
            0 likes
            Last Post AaronKoRn  
            Started by carnitron, Yesterday, 08:42 PM
            0 responses
            11 views
            0 likes
            Last Post carnitron  
            Started by strategist007, Yesterday, 07:51 PM
            0 responses
            14 views
            0 likes
            Last Post strategist007  
            Working...
            X