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

Multiple timeframes in indicator does not seem to work... should it?

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

    #16
    Hello trader4_,

    Thanks for your reply.

    Are you able to create a 1-minute chart?

    Are you able to create a 5-minute chart? (the 5-minute bars would be created from 1-minute data)

    Paul H.NinjaTrader Customer Service

    Comment


      #17
      Should not that work?

      Comment


        #18
        Yes, I min, 5 minutes.. I loaded bid prices only

        Comment


          #19
          Hello trader4_,

          Thanks for your reply.

          Are you able to create charts of 1 minute data using "last"?

          Are you able to create charts of 5 minute data using "last"?

          Paul H.NinjaTrader Customer Service

          Comment


            #20
            no, not using last... data is not loaded

            Comment


              #21
              Hello trader4_,

              Thanks for your reply.

              This is likely the source of the issue then.

              In NinjaTrader, by default, this statement: Add(PeriodType.Minute, 5); would look for "last" type.

              With reference to the help guide on the Add() method: https://ninjatrader.com/support/help.../nt7/?add3.htm

              Please test using Add(PeriodType.Minute, 5, MarketDataType.Bid);

              Paul H.NinjaTrader Customer Service

              Comment


                #22
                Even If I load last data.... it does not work
                IS this a bug in Ninja 7?

                Comment


                  #23
                  Hello trader4_,

                  Thanks for your reply.

                  If I understand correctly you have historical data that you imported as bid only, is that correct?

                  Did you try what I previously advised: Please test using Add(PeriodType.Minute, 5, MarketDataType.Bid);

                  Paul H.NinjaTrader Customer Service

                  Comment


                    #24
                    That was true in past tense. When I realized the last data was missing I imported that too.

                    Comment


                      #25
                      You suggestion does not seem to work

                      Comment


                        #26
                        Hello trader4_,

                        Thanks for your replies.

                        Correct, I forgot that when specifying the Marketdata type you also have to specify the instrument name according to: Add(string instrumentName, PeriodType periodType, int period, MarketDataType marketDataType)
                        Reference: https://ninjatrader.com/support/help.../nt7/?add3.htm

                        Please change Add(PeriodType.Minute, 5, MarketDataType.Bid); to Add("", PeriodType.Minute, 5, MarketDataType.Bid);
                        Using an empty string for the instrument name will pull the same instrument as the chart bars.

                        Alternatively, if you now have "last" data, then you can use Add(PeriodType.Minute, 5)
                        Paul H.NinjaTrader Customer Service

                        Comment


                          #27
                          ok, it works. thanks

                          Comment

                          Latest Posts

                          Collapse

                          Topics Statistics Last Post
                          Started by Haiasi, 04-25-2024, 06:53 PM
                          2 responses
                          16 views
                          0 likes
                          Last Post Massinisa  
                          Started by Creamers, Today, 05:32 AM
                          0 responses
                          4 views
                          0 likes
                          Last Post Creamers  
                          Started by Segwin, 05-07-2018, 02:15 PM
                          12 responses
                          1,785 views
                          0 likes
                          Last Post Leafcutter  
                          Started by poplagelu, Today, 05:00 AM
                          0 responses
                          3 views
                          0 likes
                          Last Post poplagelu  
                          Started by fx.practic, 10-15-2013, 12:53 AM
                          5 responses
                          5,407 views
                          0 likes
                          Last Post Bidder
                          by Bidder
                           
                          Working...
                          X