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 habeebft, Today, 07:27 AM
                    1 response
                    11 views
                    0 likes
                    Last Post NinjaTrader_ChristopherS  
                    Started by AveryFlynn, Today, 04:57 AM
                    1 response
                    12 views
                    0 likes
                    Last Post NinjaTrader_Erick  
                    Started by Max238, Today, 01:28 AM
                    4 responses
                    37 views
                    0 likes
                    Last Post Max238
                    by Max238
                     
                    Started by r68cervera, Today, 05:29 AM
                    1 response
                    10 views
                    0 likes
                    Last Post NinjaTrader_ChelseaB  
                    Started by geddyisodin, Today, 05:20 AM
                    1 response
                    14 views
                    0 likes
                    Last Post NinjaTrader_Gaby  
                    Working...
                    X