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

    NT MultiColor Plot Approach

    With NinjaTrader 7, you no longer have to have multiple plots of different colors in order to simulate having a single multi-color plot. The attached reference sample demonstrates the new multi-color plot concept for NT7. Comments are included in the script.
    Attached Files
    RayNinjaTrader Customer Service

    #2
    This feature does not work if plotstyle is set to block or triangle

    Comment


      #3
      Originally posted by roonius View Post
      This feature does not work if plotstyle is set to block or triangle
      Thanks for reporting.
      RayNinjaTrader Customer Service

      Comment


        #4
        With .Net 3.5 at your disposal it would be so easy to create an extension method on DataSeries to do this without the need for nested indices..

        There is absolutely no reason that you can't do

        Upper.PlotColor[0] = (Rising(Middle)) ? Color.Black : Color.Blue;

        (in the case that Upper is a dataseries without associated plot object, just use the NullObject pattern to act upon a static dummy Plot)

        That is IMO much cleaner..

        Comment


          #5
          This works and is better than 6.5, but it is still rather clumsy, as you have to know your plot index to set the color correctly. Having the color be associated with the Plot would make things simple and obvious.

          Comment


            #6
            I think this is MUCH better than in 6.5. Nice to be able to get rid of the extra plots data series that were needed for every color change.
            Last edited by eDanny; 11-03-2009, 11:46 AM.
            eDanny
            NinjaTrader Ecosystem Vendor - Integrity Traders

            Comment


              #7
              Originally posted by sefstrat View Post
              With .Net 3.5 at your disposal it would be so easy to create an extension method on DataSeries to do this without the need for nested indices..

              There is absolutely no reason that you can't do

              Upper.PlotColor[0] = (Rising(Middle)) ? Color.Black : Color.Blue;

              (in the case that Upper is a dataseries without associated plot object, just use the NullObject pattern to act upon a static dummy Plot)

              That is IMO much cleaner..
              "Upper" might not necessarily be a plot, it could be simple DataSeries without Plot associated with it, so Upper.PlotColor[0] will not be so easy to implement even with extension methods.

              PlotColors[0][0] works perfectly for me. Thanks NT staff.
              Last edited by roonius; 11-03-2009, 10:05 AM.

              Comment


                #8
                Originally posted by roonius View Post
                "Upper" might not necessarily be a plot, it could be simple DataSeries without Plot associated with it, so Upper.PlotColor[0] will not be so easy to implement even with extension methods.

                PlotColors[0][0] works perfectly for me. Thanks NT staff.
                roonius, I noted that situation in my previous post.. it can be handled quite easily using the NullObject design pattern.

                In other words, if using extension methods and this is a DataSeries without a plot, simply do nothing. Or an alternative way to implement it is to have all freshly instantiated DataSeries assigned a singleton or static 'dummy' plot which is never really used, ie NullPlot.

                Comment


                  #9
                  MultiColor Plot no longer works as expected in NT Beta 4. The entire plot now changes color, not just the segments.

                  Comment


                    #10
                    Just installed this myself and noticed the same thing. Also with scripts that haven't been converted to the new multicolor plot method and still use the multiple plots joined technique, the different colored plots join to their next segments.
                    Attached Files
                    eDanny
                    NinjaTrader Ecosystem Vendor - Integrity Traders

                    Comment


                      #11
                      Thanks for reporting guys, noticed the same, too here, we'll look into.
                      BertrandNinjaTrader Customer Service

                      Comment


                        #12
                        Are we looking at a quick fix for this, or will it have to wait a couple of weeks until the next beta release?

                        Comment


                          #13
                          You will have to wait. Usually we are releasing a new beta update once per week, this latest took a little longer than normal.
                          RayNinjaTrader Customer Service

                          Comment


                            #14
                            Above, I said this was kind of clumsy, but after using it today, I think it is fine. The main issue I had was that the color series is not associated with the plot name, so you have to remember which plot index is which. This is easily gotten around though with a simple enum though if you care.

                            Comment


                              #15
                              Please provide a link to download Beta 3 for those who (like me) downloaded Beta 4 and were unaware of this issue. I use various indicators with the Multi Plot feature and now find myself unable to trade because I can't downgrade anymore (the Beta 3 link in the mail announcing Beta 3 availability downloads Beta 4 now).

                              Thanks

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Mizzouman1, Today, 07:35 AM
                              4 responses
                              18 views
                              0 likes
                              Last Post Mizzouman1  
                              Started by philmg, Today, 01:17 PM
                              1 response
                              4 views
                              0 likes
                              Last Post NinjaTrader_ChristopherJ  
                              Started by cre8able, Today, 01:01 PM
                              1 response
                              6 views
                              0 likes
                              Last Post NinjaTrader_ChelseaB  
                              Started by manitshah915, Today, 12:59 PM
                              1 response
                              3 views
                              0 likes
                              Last Post NinjaTrader_Erick  
                              Started by ursavent, Today, 12:54 PM
                              1 response
                              4 views
                              0 likes
                              Last Post NinjaTrader_Jesse  
                              Working...
                              X