Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

up and donw colors on indicators and ma's

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

    up and donw colors on indicators and ma's

    Hello,

    Looking for a very simple item.
    I use indicators ( cci, macd, stoch.....) and ma's
    when an indicator is going UP i want the colour of it green ( or other to at my chioce ) and when is going DOWN i want the clour red ( or other at my choice )
    and the same for my Ma's ( sma, wma..........)

    How can i get that in the program ?

    best regards and thanks.

    #2
    Hello,

    To do this would require custom coding the indicator to do this. Are you using NinjaTrader 6.5 or Ninjatrader 7?
    BrettNinjaTrader Product Management

    Comment


      #3
      hello Brett,

      Thanks for your reply.
      I am a ninjatrader 7. I was hoping that with this new platform that problem was out of the world but it seems that it is not.
      How to do that ?

      Comment


        #4
        Hello,

        Thank you for your forum post.

        Great. In this case there is an easier way in 7 to custom program this. This is specific user customization that needs to be done to fit your trading style. Others may want it colored for different reasons, this is the reason that it needs to be custom coded for most indicators. Please see the following guide on how to do this.

        What you would do is create and indicator that will plot the indicator value you need and change colors based if the current value if higher or lower then the previous value.



        Let me know if I can be of further assistance.
        BrettNinjaTrader Product Management

        Comment


          #5
          Best Brett,

          ok i downloadedn the zipfile and have new 2 ma's. Do i have to unzip this file, read the comments in it and what then?
          dissect my cci in the same way and modify?
          This is getting a bit........
          Not only i make a system, i have to custom code also.....

          sorry but exlain me in detail how to proceed to make work this

          thanks

          Comment


            #6
            Hello,

            Unfortunately you would need to know how to custom program to do this. Since we do not write code for clients unfortunately the only thing I can do is point you in the right direction. The file I pointed you to is a sample of how to do this in code on your own indicator.

            You can contact one of our Ninja Script consultants to assist you with coding this or you can use our Ninja Script guide and forums to code this indicator yourself if you are a programmer.

            Ninja Script Consultants:

            NinjaScript Help Guide:



            Let me know if I can be of further assistance.
            BrettNinjaTrader Product Management

            Comment


              #7
              best Brett,

              Thats what i was alraedy thinking you was going to do that
              Now, every self respecting trade platform can easely colorcode the ma's and the oscillators.
              However NINJA is not doing that. That would be the job of coders. You have to pay. ( part of the deal with coders? ) many questions would be solved if ninjaplatform would be as easy as others.

              I know its not your responsabilty but after 19 UPDATES this issue is not solved. Oh yes complex lines on 10 charts at the same time..........for those who want that but the simple things? for every change you need coders, 3th parties, wathever.

              Sorry but is a bridge to far

              the reason you give me
              " This is specific user customization that needs to be done to fit your trading style. Others may want it colored for different reasons, this is the reason that it needs to be custom coded for most indicators "
              is fake, in computerterms: A HOAX

              No wonder that i see more and more forums that cab't appriciate the NINJAPLATFORM any more

              Thats my opinion

              anayway, have a great day and thaks for all the efforts. I know you and other on NINJAPLATFORM are doing a good job helping users.

              Comment


                #8
                Hello,

                No problem. I understand this is on our list for possibly adding to a future version of NinjaTrader. However as of currently the only way to change the color of an indicator based on if it is higher or lower then previous if the indicator isnt coded to include this already is through custom coding.

                Let me know if I can be of further assistance.
                BrettNinjaTrader Product Management

                Comment


                  #9
                  Hi there!
                  I am a new user so I may be wrong, but I believe this basic feature of being able to colour code an indicator according to if it goes up or down is still not native in NT8.
                  This is a bit ridiculous considering it is a very basic feature in many trading platforms and it is useful for obvious reasons.
                  Unfortunately the ZIP file provided in this thread was for NT7. Is there anything available for NT8?

                  Coming from another platform that i was able to learn in a couple days including screener features and automatic trading, I am a bit disappointed to see how everything that was so easy to use on the other platform is way more complicated to implement in NT.
                  That does not mean NT sucks of course, but it could be greatly improved in terms of user-friendliness by having a look at the Pro Real Time platform which is in my view the best platform there is today after having tested quite a few.

                  Cheers.
                  Last edited by The_Butcher; 07-26-2021, 12:32 AM.

                  Comment


                    #10
                    Hello The_Butcher,

                    Thanks for your feedback.

                    This is a NinjaTrader 7 thread, but you may find the NinjaTrader 8 sample here - https://ninjatrader.com/support/help...ored_plots.htm

                    You may also find a pre-built slope indicator on our User App Share useful - https://ninjatraderecosystem.com/use...ope-color-nt8/

                    The link above is publicly available.

                    The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.


                    Comment


                      #11
                      Thank you very much Jim, this helped.

                      The first zip file does not work as expected though: instead of plotting the SMA changing color according to slope, it plots 2 lines parallel to the real SMA, offset by the same amount, 1 on each side of the SMA. One of these lines is black when the slope is up and red when it is down and the other is black when the SMA is down and green when it is up. That's weird...

                      Thankfully, the second ZIP is wonderful!

                      Thanks!

                      Now I need to figure out how to have %K on the MACD change color according to it's slope too... Any chance you have that in stock ? ;-)

                      Comment


                        #12
                        Hello The_Butcher,

                        The first link is an example to show you how to color plot lines in NinjaScript.

                        There is a MACD UpDown indicator that colors the main MACD plot line, I have included a link below.



                        You may also search the User App Share for other free indicators.



                        The links above are publicly available.

                        The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.


                        Let us know if there is anything else we can do to help.

                        Comment


                          #13
                          Hello marcus2300,

                          I am not seeing an issue. The red/green MACD line changes green when it is rising from the last bar, and changes red when it is falling from the last bar.

                          Comment


                            #14
                            Hello marcus2300,

                            The colors would change if the plots for the indicator change. With some data providers, what gets created with realtime data may not be the same as what is fetched as historical data. This could result in different plot values forming after reloading the indicator.



                            However, this is just a guess at what you are seeing. I would need clarification on how to recreate what you are seeing to comment further, because I do not see these symptoms.

                            If this is a matter of simply pressing F5 to reload the indicator after certain bar formations, we could better see what you are referring to after creating those bars with Market Replay and the Playback Connection. If can recreate what you see as ill behavior, we could look into why that is and see about making changes to improve.

                            So far as I have tested when playing through Market Replay data for yesterday and today on MES 03-22, I have not seen plots that are red and then turn green after pressing F5 with this indicator.

                            Please let me know how I can reproduce that symptom with Playback, and I will be better able to answer your question.

                            Comment


                              #15
                              Hello marcus2300,

                              If you can point out the symptom with Market Replay data downloaded from our servers (Control Center > Tools > Historical Data > Load) we could test the same data. We would just need to know the data series settings used to create the chart, indicator settings, when to start and stop playback and when to reload (Timezones will be relevant) so we can recreate the behavior and comment on it.

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              557 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              324 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by Mindset, 02-09-2026, 11:44 AM
                              0 responses
                              101 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                              0 responses
                              545 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              547 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X