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

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
    Paul H.NinjaTrader Customer Service

    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?
          Paul H.NinjaTrader Customer Service

          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.



              Paul H.NinjaTrader Customer 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

                  Paul H.NinjaTrader Customer Service

                  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 PaulMohn, Today, 12:36 PM
                    0 responses
                    1 view
                    0 likes
                    Last Post PaulMohn  
                    Started by love2code2trade, 04-17-2024, 01:45 PM
                    4 responses
                    37 views
                    0 likes
                    Last Post love2code2trade  
                    Started by alifarahani, Today, 09:40 AM
                    2 responses
                    13 views
                    0 likes
                    Last Post alifarahani  
                    Started by junkone, Today, 11:37 AM
                    3 responses
                    20 views
                    0 likes
                    Last Post NinjaTrader_ChelseaB  
                    Started by frankthearm, Yesterday, 09:08 AM
                    12 responses
                    44 views
                    0 likes
                    Last Post NinjaTrader_Clayton  
                    Working...
                    X