Announcement

Collapse
No announcement yet.

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)

    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"?

          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);

              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);

                  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)

                        Comment


                          #27
                          ok, it works. thanks

                          Comment

                          Latest Posts

                          Collapse

                          Topics Statistics Last Post
                          Started by CarlTrading, 03-31-2026, 09:41 PM
                          1 response
                          134 views
                          1 like
                          Last Post NinjaTrader_ChelseaB  
                          Started by CarlTrading, 04-01-2026, 02:41 AM
                          0 responses
                          75 views
                          1 like
                          Last Post CarlTrading  
                          Started by CaptainJack, 03-31-2026, 11:44 PM
                          0 responses
                          119 views
                          2 likes
                          Last Post CaptainJack  
                          Started by CarlTrading, 03-30-2026, 11:51 AM
                          0 responses
                          114 views
                          1 like
                          Last Post CarlTrading  
                          Started by CarlTrading, 03-30-2026, 11:48 AM
                          0 responses
                          92 views
                          0 likes
                          Last Post CarlTrading  
                          Working...
                          X