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 Balage0922, Today, 07:38 AM
        0 responses
        5 views
        0 likes
        Last Post Balage0922  
        Started by JoMoon2024, Today, 06:56 AM
        0 responses
        6 views
        0 likes
        Last Post JoMoon2024  
        Started by Haiasi, 04-25-2024, 06:53 PM
        2 responses
        19 views
        0 likes
        Last Post Massinisa  
        Started by Creamers, Today, 05:32 AM
        0 responses
        6 views
        0 likes
        Last Post Creamers  
        Started by Segwin, 05-07-2018, 02:15 PM
        12 responses
        1,786 views
        0 likes
        Last Post Leafcutter  
        Working...
        X