Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi time frame indicator

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

    Multi time frame indicator

    Hello I have a custon indicator based on moving averages. Can I write a multi time frame version, i.e. 15 minutes and 1 hour, so that I can overlay the hourly custom indicator on the 15 minute chart as well as the one for the 15 minute chart??

    Thank you.

    #2
    nigeleyre, this is possible with indicators in our upcoming NinjaTrader 7 version - http://www.ninjatrader.com/webnew/NT7/NinjaTrader7.html

    For NinjaTrader 6.5, please use a MultTime strategy for this purpose -

    Comment


      #3
      This seems to apply to a method rather than an indicator. If I add Add(PeriodType.Minute, 3);to the initialise part of the indicator code then I get an error.

      I want a multi time indicator so I can effectively draw say a 5 period moving average from a 60 minute chart on the 15 minute chart.

      while I can draw the level of the 60 minute 5 period moving average I can't plot the actial average line itself from the one time frame onto the other?

      Comment


        #4
        nigeleyre, this is unfortunately not supported for indicators in NinjaTrader 6.5, this is why you see the error when you Add() the series.

        NinjaTrader 7 will extend the multi series concept to indicators we have right now only for strategies ( http://www.ninjatrader-support.com/H...struments.html )

        Comment


          #5
          OK when is version 7 going to be available?

          Comment


            #6
            The first beta is scheduled for the end of September - updates and features can be found here -http://www.ninjatrader.com/webnew/NT7/NinjaTrader7.html

            Comment


              #7
              Another thought, I have the actual line calculated in the actual method which the code references for trading decisions, but as the line constantly changes i.e it is a compund moving average, is it possible in the method to plot the actual line? I have it as a data series so I can check for previous values. If I can plot this then that is all I need and do not need it as a multi time frame indicator. Is this do able?

              Comment


                #8
                Please check into this sample for your idea - http://www.ninjatrader-support2.com/...ead.php?t=6651

                Comment


                  #9
                  Thank you this works perfectly, however I want to have different line widths for the different time frames, is there any way to add that to the plot code

                  StrategyPlot(0).Plots[0].Pen.Color = Color.Green; Or is there any other way to set the line widths, I can't seem to find one

                  Comment


                    #10
                    Hello,

                    Here is how you work with the plot widths etc.:


                    I will have someone else take a look and reply as well.
                    DenNinjaTrader Customer Service

                    Comment


                      #11
                      I think this only works with a normal plot.
                      I am using
                      Add(StrategyPlot(0)); and

                      StrategyPlot(0).Plots[0].Pen.Color = Color.Green; within the Initialise.

                      But they do not seem to like a reference to a line thickness. I am sure there must be a way?

                      Comment


                        #12
                        nigeleyre, did you try? - StrategyPlot(0).Plots[0].Pen.Width = 2;

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                        0 responses
                        581 views
                        0 likes
                        Last Post Geovanny Suaza  
                        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                        0 responses
                        338 views
                        1 like
                        Last Post Geovanny Suaza  
                        Started by Mindset, 02-09-2026, 11:44 AM
                        0 responses
                        103 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
                        552 views
                        1 like
                        Last Post RFrosty
                        by RFrosty
                         
                        Working...
                        X