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 MTF Moving average SMA, EMA, WMA for NT8

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

    Multi Time Frame MTF Moving average SMA, EMA, WMA for NT8

    This is the free version of Multi Time Frame MTF Moving average MA indicator for Ninjatrader 8 NT8.


    You can use SMA, EMA and WMA as MA type.


    If you want more MA type and timaframes, please check the Pro version at: http://www.patternsmart.com/cart/ind...product_id=360






    Attached Files

    #2
    I tried it and doesn't seem to work on 8.0.2.

    Comment


      #3
      Nevermind. I misspoke. IT works. Thanks.

      Comment


        #4
        it looks like it is a bit slow sometimes and won't appear or show right away on tick charts...I wanted to combine 1000 tick to 1 min and 250 tick chart with it

        Comment


          #5
          Does this not work on lower time frames? Does anyone know of one that does correctly? I want to show Daily's on intraday Minute charts. I'm guessing they are not using AddDataSeries or loading enough bars. Thank you

          Comment


            #6
            Hello UncleRyan,

            The script provided by patternsmart is closed source and cannot be viewed.

            Below is a link to an example of a multi-time frame indicator you may find helpful.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Chelsea,

              This is great!


              Was able to apply it to some indicators perfectly for showing a higher time frame indicator. (Daily on hourly).
              Is there a way to show shorter on longer (daily on a weekly? I only want to handle this programatically (not "add a second data series and hide it or make it invisible")

              And I feel silly asking this: I share a lot of my charts with a large group so visuals matter to me. I understand the choppy MA lines is just a matter of price intervals being so different, but is there any way to get a smoother line?

              Thanks for all your help.

              Comment


                #8
                Hello UncleRyan,

                The line is choppy because the values only update when the higher time frame closes.

                If you want a smoother line you will need to make up values for the bars in between.
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #9
                  Hi, I would like to know if it is possible to color a multitimeframe indicator such as momentum. I've coded one, but I can't color it on green when it's above 0 and red below 0. I tried : if Value[0] > 0, etc. But it doesn't work, also secondary and primary[0] and it doesn't work either.

                  Here is what I tried but it adds a line and I want bar.

                  if(MomentumColoredSecondary[0] > 0)
                  {
                  PlotBrushes[0][0] = Brushes.Lime;
                  }
                  else if(MomentumColoredSecondary[0] < 0)
                  {
                  PlotBrushes[0][0] = Brushes.Red;
                  }

                  Can anybody help ?

                  Comment


                    #10
                    Hello Manu2356,

                    Is MomentumColoredSecondary a plot? Specifically is this the first plot added with AddPlot()?

                    Are you setting PlotBrushes on every primary bar close?
                    Chelsea B.NinjaTrader Customer Service

                    Comment


                      #11
                      Hi ChelseaB,

                      MomentumColoredSecondary is a value, like it would be Value[0] (I tried with Value[] but doesn't work). I added the following plots :

                      AddPlot(Brushes.Transparent, NinjaTrader.Custom.Resource.NinjaScriptIndicatorDe scriptionMomentum);
                      AddPlot(Brushes.Green, "MomentumColored Secondary Series");

                      // AddPlot(Brushes.DarkCyan, "MomentumColored Secondary Series");
                      AddLine(Brushes.SlateBlue, 0, NinjaTrader.Custom.Resource.NinjaScriptIndicatorZe roLine);


                      I have downloaded a code for momentum colored and in this code, to make it green when above 0 and red when under 0 the code calls Value [0] so I tried on the mtf version I did, but it doesn't work.

                      Comment


                        #12
                        Hello Manu2356,

                        NinjaTrader does not have a custom resource named NinjaScriptIndicatorDescriptionMomentum.

                        Unless this is a resource you have made in your own resource dictionary, I would suggest you supply a string.

                        AddPlot(Brushes.Transparent, "DescriptionMomentum");


                        Is Values[0] being returned by the getter for MomentumColoredSecondary?

                        What value is printed for this in the output window?

                        Print(string.Format("{0} | MomentumColoredSecondary[0]: {1}", Time[0], MomentumColoredSecondary[0]));
                        Chelsea B.NinjaTrader Customer Service

                        Comment


                          #13
                          Hi Chelsea B,

                          Yes, values are returned, I join a snapshot of values returned, I printed two and the plot result.

                          It adds a line but I'd like to have bars painted in green and/or red...
                          Attached Files

                          Comment


                            #14
                            Hello Manu2356,

                            When you say "I'd like to have bars painted in green and/or red" are you talking about the chart bars or the indicator plot?


                            What does Values[0][0] print?
                            Value[0] is not matching MomentumColoredSecondary[0], are you certain MomentumColoredSecondary is Values[0]?
                            Chelsea B.NinjaTrader Customer Service

                            Comment


                              #15
                              I would like the indicator bars paint in green when above 0 and red below zero.

                              I think that's the point, but I don't know how to assign secondary to value[0].

                              Is it like this : Value[0]=MomentumColoredSecondary[0] ? If yes, where to place it into the onbarupdate ?

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by cls71, Today, 04:45 AM
                              0 responses
                              1 view
                              0 likes
                              Last Post cls71
                              by cls71
                               
                              Started by mjairg, 07-20-2023, 11:57 PM
                              3 responses
                              213 views
                              1 like
                              Last Post PaulMohn  
                              Started by TheWhiteDragon, 01-21-2019, 12:44 PM
                              4 responses
                              544 views
                              0 likes
                              Last Post PaulMohn  
                              Started by GLFX005, Today, 03:23 AM
                              0 responses
                              3 views
                              0 likes
                              Last Post GLFX005
                              by GLFX005
                               
                              Started by XXtrader, Yesterday, 11:30 PM
                              2 responses
                              12 views
                              0 likes
                              Last Post XXtrader  
                              Working...
                              X