Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Adding index within a strategy

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

    #16
    Originally posted by NinjaTrader_Dierk View Post
    It auto downloads data based on settings in Tools->Options->Data->Lookback in case data is not in the DB yet.
    Dierk,

    Is this for strategies when you're running live, running backtests, or loading live charts?

    Comment


      #17
      Live strategies on chart or strategy tab

      Comment


        #18
        Ray,

        That didn't work either.

        It does work after I have opened individual charts for each instrument, forcing a download. (But judging by the time it takes, the Strategy Analyzer seems to be redownloading the data).

        It also seems to work when there is already some data present for the instruments and it only needs a day or so to be updated.

        Dierk,

        the other thread is just about ensuring at least 20 days of data, which is not the problem I'm having.

        Comment


          #19
          The issue is
          >> OnBarUpdate never executes
          ... on a multi series strategy which is what all 3 threads are about.

          Did you check your logs for strange error messages?

          Comment


            #20
            Also: Try what Ray suggested with the NT sample strategy SampleMACrossOver. This must work.

            Comment


              #21
              Originally posted by NinjaTrader_Dierk View Post

              Did you check your logs for strange error messages?
              Ah, there is something - an invalid instrument message for one of the equities. The exchange was configured only as "default."

              Would this be the culprit? If so, why does the data download work fine when I open a chart for the instrument (and the strategy work after that)?

              Comment


                #22
                - fur future: please always check the logs if you feel something is wrong
                - please make sure you configure additional instruments equivalent to the instruments already defined in NT

                Comment


                  #23
                  - will do.
                  - that instrument was imported as part of a list via Utilities. Since charts work with the "default" setting, there didn't seem any reason to worry about it in a Strategy, or to check the settings for each instrument individually.

                  Thanks for the help!

                  Comment


                    #24
                    For stocks imported by File->Utilies you'll have to select a non-default exchange -> any stock imported will have this selected exchange plus the default exchange which matches exactly the setup NT requires.

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by argusthome, 03-08-2026, 10:06 AM
                    0 responses
                    68 views
                    0 likes
                    Last Post argusthome  
                    Started by NabilKhattabi, 03-06-2026, 11:18 AM
                    0 responses
                    41 views
                    0 likes
                    Last Post NabilKhattabi  
                    Started by Deep42, 03-06-2026, 12:28 AM
                    0 responses
                    24 views
                    0 likes
                    Last Post Deep42
                    by Deep42
                     
                    Started by TheRealMorford, 03-05-2026, 06:15 PM
                    0 responses
                    27 views
                    0 likes
                    Last Post TheRealMorford  
                    Started by Mindset, 02-28-2026, 06:16 AM
                    0 responses
                    54 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Working...
                    X