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

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 -

    BertrandNinjaTrader Customer Service

    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 )
        BertrandNinjaTrader Customer Service

        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
            BertrandNinjaTrader Customer Service

            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
                BertrandNinjaTrader Customer Service

                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;
                        BertrandNinjaTrader Customer Service

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by algospoke, Yesterday, 06:40 PM
                        2 responses
                        22 views
                        0 likes
                        Last Post algospoke  
                        Started by ghoul, Today, 06:02 PM
                        3 responses
                        14 views
                        0 likes
                        Last Post NinjaTrader_Manfred  
                        Started by jeronymite, 04-12-2024, 04:26 PM
                        3 responses
                        45 views
                        0 likes
                        Last Post jeronymite  
                        Started by Barry Milan, Yesterday, 10:35 PM
                        7 responses
                        21 views
                        0 likes
                        Last Post NinjaTrader_Manfred  
                        Started by AttiM, 02-14-2024, 05:20 PM
                        10 responses
                        181 views
                        0 likes
                        Last Post jeronymite  
                        Working...
                        X