• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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.

        Comment


          #19
          Here is the answer:

          Code:
          Up_Zone.EndAnchor.DrawnOnBar   = 0; 
          Up_Zone.StartAnchor.DrawnOnBar = CurrentBar;

          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 jamarc, Today, 02:30 AM
              1 response
              6 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Started by uday12, Yesterday, 04:19 PM
              1 response
              7 views
              0 likes
              Last Post NinjaTrader_PaulH  
              Started by grose, Today, 06:53 AM
              2 responses
              7 views
              0 likes
              Last Post grose
              by grose
               
              Started by Bobisam, Yesterday, 04:57 PM
              1 response
              21 views
              0 likes
              Last Post NinjaTrader_PaulH  
              Started by voltlon, Yesterday, 05:18 PM
              1 response
              10 views
              0 likes
              Last Post NinjaTrader_PaulH  
              Working...
              X