Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw.Region slow when scrolling mouse wheel

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

    #16
    Originally posted by NinjaTrader_ChelseaB View Post
    Hi Harry,

    I'm actually just now understanding what you were trying to point out.

    The region is not being displaced from the first actual bar (as in bar 0), it is being displaced from the left side of the rendered area, which would be a bug.

    When you mentioned in post #11 "For example if a displacement of 20 bars is selected, the region will not be plotted for the first 20 bars on the chart.", I understood this as the first 20 bars from bar 0 will not be plotted, which is the expected behavior.

    I've put in a bug report about this. Once I have a tracking ID for this bug report I will post this ID in this thread.

    Thank you for your clarification to get me pointed in the right direction.
    I am glad that you have finally decided that this is a bug after all, but, with all due respect, this was first pointed out more than 6 months ago.

    ref: http://ninjatrader.com/support/forum...ad.php?t=80674

    I have coded around it, and my implementation shows the cloud from the start of the chart. Still, it is a bug.

    Comment


      #17
      Hi Harry and kognam,

      This bug is being tracked with ID #NTEIGHT-9927.

      (I think we just needed to get the terminology right to make sure everyone is on the same page.)
      Chelsea B.NinjaTrader Customer Service

      Comment


        #18
        When You put Draw.Region in OnBarUpdate() method - You creating new Region object on each bar again and again.

        Regions work march more faster in NT7 in this implementation:
        Code:
        IRegion Up_Zone;
        
        void override OnStartUp()
        {
        Up_Zone = DrawRegion("Up_Zone", 0, 0, LineUp1, LineUp2, Color.Empty, Color.Blue, 10 );	
        }
        
        void override OnBarUpdate()
        {
        Up_Zone.EndBarsAgo = 0;	
        }
        Now I searching way to do same in NT8.
        fx.practic
        NinjaTrader Ecosystem Vendor - fx.practic

        Comment


          #19
          Here is the answer:

          Code:
          Up_Zone.EndAnchor.DrawnOnBar   = 0; 
          Up_Zone.StartAnchor.DrawnOnBar = CurrentBar;
          fx.practic
          NinjaTrader Ecosystem Vendor - fx.practic

          Comment


            #20
            RC2 - Draw.Region bug not fixed

            With RC2 Draw.Region still does not work properly when the overload providing for a displacement is used.

            The area is not filled when the bar to which Draw.Region() is attached is within the first N bars on the visible section of the chart, where N is the displacement.

            For example the chart below has 9 bearish bars and the area is not filled with a displacement of 10 bars.
            Attached Files

            Comment


              #21
              Draw.Region bug for negative replacements

              When a negative displacement is used (pretty unusual), there are increased gaps in the fill area, see chart below.
              Attached Files

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by r68cervera, Today, 05:29 AM
              0 responses
              2 views
              0 likes
              Last Post r68cervera  
              Started by geddyisodin, Today, 05:20 AM
              0 responses
              3 views
              0 likes
              Last Post geddyisodin  
              Started by JonesJoker, 04-22-2024, 12:23 PM
              6 responses
              33 views
              0 likes
              Last Post JonesJoker  
              Started by GussJ, 03-04-2020, 03:11 PM
              12 responses
              3,239 views
              0 likes
              Last Post Leafcutter  
              Started by AveryFlynn, Today, 04:57 AM
              0 responses
              6 views
              0 likes
              Last Post AveryFlynn  
              Working...
              X