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

Data mismatch

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

    Data mismatch

    I am having an error which I spent 3 hours trying to solve with no success.

    Problem #1
    YES, I am using Prints, yes, I tried to comment in/out all possible entry/exit variations and turn them on/off one by one to see what causes the problem.

    Turns out the part of the calculation:
    Code:
    High[0] > High[1]
    which is weird.

    I will post 2 screenshots:
    - Good.png is marked with teal color and you see that all the data matches from top window (results) with performance window
    - Bad.png is marked with red color and you see that instead of 177 trades, that are shown in the results, in performance window I only see 176 trades.

    I cannot reproduce a shortened version of my code as it is really long, but I am debugging it like crazy during those 2 days, solved some issues, but this is not giving me a pass.

    Problem #2
    I attached Error message in Error.png file. It is sometimes displayed when I click Compile, even though it compiles. What is it and what can be done to get rid of the message?
    Attached Files
    Last edited by UltraNIX; 09-27-2021, 02:18 PM.

    #2
    Hi, thanks for posting.

    Please look at the Trades view (top left view setting) and compare the trades made between each strategy. There could be one extra trade at the beginning/end of the data. We would need some way of reproducing with a simple strategy or you would need to reduce the code to find the difference.

    The error message could be coming from an Addon that re-initializes on compile. Are you running any custom addons? Specifically scripts in the Documents\NinjaTrader 8\bin\Custom\AddOns folder. If you do not have any of those I would recommend making a clean Documents/NinjaTrader 8 folder and testing in a clean environment.

    Kind regards,
    -ChrisL
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_ChrisL View Post
      There could be one extra trade at the beginning/end of the data.
      And that should be acceptable?

      I've seen this happening before.

      Comment


        #4
        Hi UltraNIX,

        It's not that the strategy analyzer is breaking, your strategy is simply generating a signals. Sometimes there is an extra signal generated for any reason, or there is data being processed in one instance that the other instance is not seeing.

        Kind regards,
        -ChrisL
        Chris L.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by GussJ, 03-04-2020, 03:11 PM
        11 responses
        3,227 views
        0 likes
        Last Post xiinteractive  
        Started by andrewtrades, Today, 04:57 PM
        1 response
        13 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by chbruno, Today, 04:10 PM
        0 responses
        7 views
        0 likes
        Last Post chbruno
        by chbruno
         
        Started by josh18955, 03-25-2023, 11:16 AM
        6 responses
        440 views
        0 likes
        Last Post Delerium  
        Started by FAQtrader, Today, 03:35 PM
        0 responses
        11 views
        0 likes
        Last Post FAQtrader  
        Working...
        X