Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Load extended additional Data

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

    Load extended additional Data

    Hi Guys,
    im working on a seasonal Indicator at the moment.
    i need need the indicator to load additional data or to be more precise all historic data i‘ve got in ninjatrader no matter what time frame i selected.
    can u help me with that problem?
    thanks a lot!

    #2
    Hello Branpo,

    Thanks for your post.

    Ninjascript provides an AddDataSeries() overload where you can specify the number of bars to load for that data series. Please see: https://ninjatrader.com/support/help...dataseries.htm

    Here is an example of adding 10,000 60 minute bars

    else if (State == State.Configure)
    {
    AddDataSeries("NQ 03-20", new BarsPeriod {BarsPeriodType = BarsPeriodType.Minute, Value = 60}, 10000, "CME US Index Futures ETH", true);
    }
    }

    protected override void OnBarUpdate()
    {
    Print (Times[BarsInProgress][0]+" BIP: "+BarsInProgress+" CB: "+CurrentBars[BarsInProgress]); // show in the output window the chart bars and the added dataseries.
    }


    When used on a 5 calendar day 1 minute NQ 03-20 chart, the output window would begin like this:

    5/17/2018 11:00:00 AM BIP: 1 CB: 0
    5/17/2018 12:00:00 PM BIP: 1 CB: 1
    5/17/2018 1:00:00 PM BIP: 1 CB: 2
    5/17/2018 2:00:00 PM BIP: 1 CB: 3
    5/17/2018 3:00:00 PM BIP: 1 CB: 4
    5/17/2018 5:00:00 PM BIP: 1 CB: 5

    And would finish like this:

    1/28/2020 6:58:00 AM BIP: 0 CB: 4991
    1/28/2020 6:59:00 AM BIP: 0 CB: 4992
    1/28/2020 7:00:00 AM BIP: 0 CB: 4993
    1/28/2020 7:00:00 AM BIP: 1 CB: 9999
    1/28/2020 7:01:00 AM BIP: 0 CB: 4994
    1/28/2020 7:02:00 AM BIP: 0 CB: 4995

    Comment


      #3
      Thank you Paul,
      you are awesome!

      Comment


        #4
        Hi Branpo,

        you can find a seasonality indicator for Ninjatrader 7 here:

        This article details 5 Seasonal Trades that are backed by fundamental drivers and includes free Seasonality Indicator code for TradeStation.


        Comment


          #5
          Hello Harvard,

          Thanks for your post.

          Please note that this is the NinjaTrader8 indicator thread.

          Can you reply your link with one for NinjaTrader8?

          Comment


            #6
            Unfortunately not. I hoped it would be a help for Branbo to see how it is coded in Ninjascript 7. Maybe someone is able to convert it and share it with our great community. Is the Ninjatrader-Team developing a seasonality indicator?

            Comment


              #7
              Hello Harvard,

              Thanks for your reply.

              I could not advise if we are or are not developing a seasonal indicator.

              If you would like that indicator that you posted converted to NinjaTrader 8, we can provide you with a link to 3rd party programmers in the NinjaTrader ecosystem that can provide that service.



              Comment


                #8
                Originally posted by Harvard View Post
                Unfortunately not. I hoped it would be a help for Branbo to see how it is coded in Ninjascript 7. Maybe someone is able to convert it and share it with our great community. Is the Ninjatrader-Team developing a seasonality indicator?
                Thanks a lot Harvard for that link!
                I converted it myself to NT8.
                If someone is interested in having it just send me a pm

                Comment


                  #9
                  Hello Branpo,

                  Thanks for your post.

                  Just to let you know, you are welcome to add your indicator to the NT user apps for the benefit of the community, if you wish.

                  Here is the link to do so: https://ninjatrader.com/support/foru...app-submission

                  Comment


                    #10
                    Originally posted by Branpo View Post

                    Thanks a lot Harvard for that link!
                    I converted it myself to NT8.
                    If someone is interested in having it just send me a pm
                    Olá Branpo, como está?

                    I need the Seasonality indicator, could you please make it available?

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                    0 responses
                    579 views
                    0 likes
                    Last Post Geovanny Suaza  
                    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                    0 responses
                    334 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by Mindset, 02-09-2026, 11:44 AM
                    0 responses
                    101 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                    0 responses
                    554 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by RFrosty, 01-28-2026, 06:49 PM
                    0 responses
                    551 views
                    1 like
                    Last Post RFrosty
                    by RFrosty
                     
                    Working...
                    X