Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CustomPlotSample

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

    CustomPlotSample

    In NT 6.5 when applying the CustomPlotSample indicator to panel 1 the price bars would disappear. This was good because I had indicators that were based on this sample indicator and I expected that behaviour.

    Now in NT 7 when applying the CustomPlotSample indicator to panel 1 the price bars are still showing. Is this expected for NT 7? If so, how can we remove the price bars when overriding the Plot method?

    Thanks

    #2
    hemlock,

    Could not reproduce. I added CustomPlotSample to the first panel and it drew on top of the bars. Perhaps you have messed with the z-ordering of your objects on the chart. Please select the indicator just by clicking and then hold SHIFT and mouse wheel up/down.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Not sure how I messed with the zorder but you were correct. I sent the standard price bars to level 2 and all is well.

      I take that back, all might not be well. It seems once the standard price bars are sent to level 2 the normal "chart" mouse functions cease to work. It seems that the mouse functions are tied to the indicator not the chart. Since the indicator (in this case the CustomPlotSample) takes over the entire chart, the mouse functions are tied to the indicator not the chart. That's what it seems like to me anyway.

      1. Scrolling with the mouse does not appear to work.
      2. Left clicking no longer brings up the properties dialog.

      Comment


        #4
        hemlock,

        It is accurate because you basically have the indicator selected the whole time. Since the indicator takes up the whole panel you are accessing the indicator properties, etc.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          OK.

          To me this is drastically different than version 6.5. I have several indicators that have custom plots that use the entire chart panel (i.e. market delta, volume profiling, etc...). I would hate to lose the mouse scrolling ability on these indicators when using version 7.

          I would suspect other users have custom plots as well that will be affected.

          Is there anyway to change this behaviour?
          Last edited by hemlock; 10-21-2009, 10:45 AM.

          Comment


            #6
            Couldn't you still scroll with the x-axis scrollbar?
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Originally posted by NinjaTrader_Josh View Post
              Couldn't you still scroll with the x-axis scrollbar?
              Obviously yes I could use the scroll bar. Typically I don't have the scroll bar displayed. Sometimes I like to scroll into the future which I can't do with the scroll bar. (yes I could use BarMarginRight but it's really not the same). Plus I think you have taken some functionality away. Disappointed, yes, deal breaker, no. Trivial matter for your developers to change, probably not.

              Comment


                #8
                Originally posted by hemlock View Post
                Obviously yes I could use the scroll bar. Typically I don't have the scroll bar displayed. Sometimes I like to scroll into the future which I can't do with the scroll bar. (yes I could use BarMarginRight but it's really not the same). Plus I think you have taken some functionality away. Disappointed, yes, deal breaker, no. Trivial matter for your developers to change, probably not.
                We will look into this. One option could be to somewhow exclude custom rendering from the object selection hit test however, I am not sure of implications of doing something like this.
                RayNinjaTrader Customer Service

                Comment


                  #9
                  Thanks Ray, will look forward to what you find out.

                  Comment


                    #10
                    We have added a feature that will allow you to exclude user defined Plot() method drawn objects from the hit test logic.

                    In your Plot() method, you will need to do something like:


                    Code:
                    [FONT=Courier New]if (!InHitTest)[/FONT]
                    [FONT=Courier New]    graphics.FillRectangle(tmpBrush, [COLOR=blue]new[/COLOR] [COLOR=#2b91af]Rectangle[/COLOR] (0, 0, 2000, 2000));[/FONT]
                    The above rectangle would be exlcuded from any hit test logic.
                    RayNinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                    0 responses
                    626 views
                    0 likes
                    Last Post Geovanny Suaza  
                    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                    0 responses
                    359 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by Mindset, 02-09-2026, 11:44 AM
                    0 responses
                    105 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                    0 responses
                    562 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by RFrosty, 01-28-2026, 06:49 PM
                    0 responses
                    567 views
                    1 like
                    Last Post RFrosty
                    by RFrosty
                     
                    Working...
                    X