Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

New/Different StrategyUpdateJob error

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

    New/Different StrategyUpdateJob error

    Here is the latest error I received while testing a new strategy:

    Failed to execute DB job 'StrategyUpdateJob': A foreign key value cannot be inserted because a corresponding primary key value does not exist.

    I was running the strategy on a 6E chart and was updating an indicator value on a different chart when NT crashed.

    Thoughts.....

    #2
    gyoung,

    Please check the Add() method for your HeikenAshi as your sent in log/trace files suggest. See if that helps.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Josh,
      Here is the initialize code:

      Code:
      protected override void Initialize()
              {
      	    AddHeikenAshi("6E 03-10", PeriodType.Minute, 1, MarketDataType.Last);
                  CalculateOnBarClose = true;
              }
      The trace file had the following error

      unable to deserialize user data: Please use the alternate method 'AddHeikenAshi()' instead of Add()

      I am not using Add() so I do not know where the issue is starting from.

      Gary

      Comment


        #4
        Gary,

        Please attach your indicator as I am unable to reproduce. Please provide all information as to what kind of chart this indicator was attached to exactly to receive that error message. Thank you.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Josh,
          Here are the culprits.

          I had the strategy running on a 250 volume HA chart and the indicator on both 250V and 1 Minute.

          Note: I have made a lot of changes to this strategy (That is why it is blank) and was starting over from scratch since I was unable to get the multi time frame aspects to work correctly within an indicator.
          Attached Files

          Comment


            #6
            Please also attach RSIBands indicator. Thank you.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              This is a part of your on-line indicator collection.
              Let me know if you need anything else.
              Gary
              Attached Files

              Comment


                #8
                gyoung,

                Hmm. Could not reproduce any errors with your strategy/indicator setup. Can you still reproduce?
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  Josh,
                  I have not encountered this issue since I posted.
                  The first time today it happened, I blew it off and ignored it.
                  When it happened 15 minutes later, I decided to post.
                  Twice is a little more troubling than a single time.

                  I will continue to run my strategies this evening and it if happens again, will let you know.

                  Comment


                    #10
                    As much information as to reproducible steps would be appreciated. Thanks. Have a good weekend.
                    Josh P.NinjaTrader Customer Service

                    Comment


                      #11
                      Josh,
                      For what it is worth, I am getting this error on startup now.
                      Going to reset and repair the DB and start from scratch again.
                      Will let you know when I can get a reproducible scenario.
                      Gary

                      Comment


                        #12
                        So you are getting the StrategyUpdateJob on NT start up, consistently? If yes, please do not change anything with your installation and I will provide additional instructions.
                        RayNinjaTrader Customer Service

                        Comment


                          #13
                          Ray,
                          I already reset my DB.
                          Did not think you guys would be working the weekends.
                          Dedication.....

                          Sorry

                          Comment


                            #14
                            No problem, just let us know next time you see it and if reproducible, wait for our instructions since this issue is a hard one to track down. Thanks in advance.
                            RayNinjaTrader Customer Service

                            Comment

                            Latest Posts

                            Collapse

                            Topics Statistics Last Post
                            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                            0 responses
                            607 views
                            0 likes
                            Last Post Geovanny Suaza  
                            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                            0 responses
                            353 views
                            1 like
                            Last Post Geovanny Suaza  
                            Started by Mindset, 02-09-2026, 11:44 AM
                            0 responses
                            105 views
                            0 likes
                            Last Post Mindset
                            by Mindset
                             
                            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                            0 responses
                            560 views
                            1 like
                            Last Post Geovanny Suaza  
                            Started by RFrosty, 01-28-2026, 06:49 PM
                            0 responses
                            561 views
                            1 like
                            Last Post RFrosty
                            by RFrosty
                             
                            Working...
                            X