Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi Timeframe support

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

    #16
    Please mind the capitalization:

    [Browsable(false)]
    [XmlIgnore()]
    public StringSeries BarDotColor
    {
    get { return barDotColor; } // Allows our public barDotColor StringSeries to access and expose our interal barDotColor StringSeries
    }

    Comment


      #17
      thanks !

      Will watch that.

      Comment


        #18
        Another Multi Time Frame Question

        I want CalculateOnBarClose = true to apply to the primary bar object, but I want CalculateOnBarClose = false to apply to the secondary bar object.

        In a multi time frame strategy, can I do the following ?

        protected override void Initialize()
        {
        CalculateOnBarclose = True;
        ...
        }

        protected override void OnBarUpdate()
        {
        if (BarsInProgress == 1)
        {
        ...
        CalculateOnBarClose = False;
        }
        }

        Comment


          #19
          No.

          CalculateOnBarClose is set for all series in a strategy. What you can do though is:

          if (BarsInProgress == 0 && FirstTickOfBar)
          {
          // Process on the opening tick of a bar. Reference Close[1] to get the prior bar close etc...
          }
          else if (BarsInProgress == 1)
          {
          // Process each tick
          }
          RayNinjaTrader Customer Service

          Comment


            #20
            Thanks !

            Will make a note of it.

            thanks !

            Comment


              #21
              Hi:

              I want evaluate the close price of the DJIA index at 2 pm EST and execute an order on the Dow Future, which is traded for the next few minutes. Unless orders are executed in the interim, I want to exit at the next close of the DJIA index, one trading day later. The Dow index is added with index 1

              If I use:

              if (BarsInProgress == 1 && FirstTickOfBar)
              {
              // Process on the opening tick of a bar. Reference Close[1] to get the prior bar close etc...
              if Closes [1][0] < Closes [1][1]......
              }
              else if (BarsInProgress == 0)
              {
              // Process each tick
              }

              this would execute at the open the next day, would it not? Or does the 'FirstTickOfBar' condition evaluate to true as soon as the bar closes? In addition, how can I have my exit order trigger at 2 pm the next day if an open position still exists?

              Comment


                #22
                It depends on what your bar series are. The FirstTickOfBar only evaluates to true when a new bar starts. This is the same event of when the old bar closes. For a time filter please see this reference sample: http://www.ninjatrader-support.com/v...ead.php?t=3226
                Josh P.NinjaTrader Customer Service

                Comment


                  #23
                  Multi Time Frame Indicator

                  Question on a multi time frame indicator. The following code works on a multi time frame STRATEGY, no problem. But on an INDICATOR, I'm getting a CS1501 (no overload for method 'Add' takes '2' arguments) compiler error.

                  // Add a 987 Tick bar object to the strategy
                  Add(PeriodType.Tick,987);
                  // Add a 1597 Tick bar object to the strategy
                  Add(PeriodType.Tick,1597);

                  Multi time frame indicators are supported ? Right ?

                  Regards,
                  R. C.

                  Comment


                    #24
                    >> Question on a multi time frame indicator
                    Multi time frame indicators are not supported at this time, only strategies.

                    Comment


                      #25
                      Wish List Addition for next version of NT

                      Can you add 'multi frame indicator' support to the next version of NT ?

                      Thanks !

                      Comment


                        #26
                        This is on the list for NT7.
                        RayNinjaTrader Customer Service

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                        0 responses
                        666 views
                        0 likes
                        Last Post Geovanny Suaza  
                        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                        0 responses
                        376 views
                        1 like
                        Last Post Geovanny Suaza  
                        Started by Mindset, 02-09-2026, 11:44 AM
                        0 responses
                        110 views
                        0 likes
                        Last Post Mindset
                        by Mindset
                         
                        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                        0 responses
                        575 views
                        1 like
                        Last Post Geovanny Suaza  
                        Started by RFrosty, 01-28-2026, 06:49 PM
                        0 responses
                        580 views
                        1 like
                        Last Post RFrosty
                        by RFrosty
                         
                        Working...
                        X