Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT MultiColor Plot Approach

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #46
    Hi Brett,
    yes you are correct in both. And sorry for the mistake. I would like to have it drawn in real time as each tick appears so the colour might change during time segment, but as you can see on pdf file, it is not working correctly
    Radek

    Comment


      #47
      Hello,

      We do not normally write code, however as part of my NinjaScript training for NinjaTrader 7 I will code this indicator for you later today and post it here for you.



      I look forward to assisting you further.

      Comment


        #48
        Hi Brett,
        I really appreciate that. Thank you. Just one question. Should not it work if I just changed SMA to CCI in your original code? Probably not if it does not
        Stupid questin

        Comment


          #49
          No Problem.

          I havnt looked into the code yet however I think there are other changes that need to be done to the logic also.

          Comment


            #50
            godiamond,

            Attached is the indicator below. If you take a look at the source code the new NinjaTrader 7 method if very straight forward on multicolor plots.

            Let me know if you have any questions.
            Attached Files

            Comment


              #51
              Multi color plot example is not quite complete...

              Brett, could you please add the code that allow users to set the rising and falling colors, which requires: declaring the colors, getting them from the UI, and serializing them. Just setting them to arbitrary hard coded values is not optimum.

              Most people who are writing indicators are still using the NT6.5 technique of switching between different colored plots. It's time for everybody to move on to the next level.

              Comment


                #52
                Hi Brett,
                thank you for your help. This is not exactly what I was looking for. I need green bar if CCI is higher(raisin) than previous one and red if CCI is lower(going down) than previous one. Not higher or lower than 0.
                Radek

                Comment


                  #53
                  Please see version 2 of this indicator. I have changed so that it changes color based on if the current CCI value is greater then the previous one it turns green or lower it turns red. Also I have added customizable color option as the suggestion from another user.

                  Let me know if you have any questions on how this works.
                  Attached Files

                  Comment


                    #54
                    thanks Brett

                    Very good example of multi-color plotting, great new feature of NT7! thanks.

                    Comment


                      #55
                      Hi Brett,
                      Yes that's exactly it. Thank you very much

                      Comment


                        #56
                        Moderator, could you please split the godiamond part of this thread to somewhere else and also lock this one.

                        this sticky thread should be short and informative for just those who need quick facts on multi color plots. not twitter-like ping-pong with someone who is really bored.

                        thank you

                        Comment


                          #57
                          Originally posted by maxima View Post
                          Moderator, could you please split the godiamond part of this thread to somewhere else and also lock this one.

                          this sticky thread should be short and informative for just those who need quick facts on multi color plots. not twitter-like ping-pong with someone who is really bored.

                          thank you

                          I will forward your request to the moderator.
                          Christopher J.NinjaTrader Customer Service

                          Comment


                            #58
                            Hello,
                            I am watching than the Set method doesn´t work with ColorSeries:

                            Code:
                             
                            PlotColors[n].Set( 0, Color.Green ); // it doesn´t work !!!
                            PlotColors[n][0] = Color.Green; // it works fine
                            Is there any special reason for this behaviour which is different from other series like DataSeries, BoolSeries, ... ?

                            Thanks very much

                            Comment


                              #59
                              cls71, my quick guess is that the PlotColors base definition does not contain a .Set() method to work with. If you really need to use .Set(), please reply back and we can send it along as a suggestion.
                              AustinNinjaTrader Customer Service

                              Comment


                                #60
                                Originally posted by NinjaTrader_Austin View Post
                                If you really need to use .Set(), please reply back and we can send it along as a suggestion.
                                Yes, please. Thank you.

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by ScottWalsh, Today, 06:52 PM
                                4 responses
                                32 views
                                0 likes
                                Last Post ScottWalsh  
                                Started by olisav57, Today, 07:39 PM
                                0 responses
                                4 views
                                0 likes
                                Last Post olisav57  
                                Started by trilliantrader, Today, 03:01 PM
                                2 responses
                                19 views
                                0 likes
                                Last Post helpwanted  
                                Started by cre8able, Today, 07:24 PM
                                0 responses
                                6 views
                                0 likes
                                Last Post cre8able  
                                Started by Haiasi, Today, 06:53 PM
                                1 response
                                5 views
                                0 likes
                                Last Post NinjaTrader_Manfred  
                                Working...
                                X