Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

But with plot width drawing at 2 although left at 1

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

    But with plot width drawing at 2 although left at 1

    Hi,

    Please see the attached image, from a test indicator created using the Ninjascript wizard and assigning static values to the plot.

    Both plots are set to the color Black.

    The top plot is left at a width of 1, while the bottom is set to 2 in the properties window. They both actually have the same width of 2 (I have also tested this by overlaying them), but the bottom one is darker, as if the default setting of 1 leaves the width at 2 but halves the opacity.

    If I leave the bottom plot at a width of 1, it too draws the same width but with reduced darkness.
    Attached Files
    Last edited by palinuro; 03-10-2016, 08:58 PM.

    #2
    Hello palinuro,

    Thank you for your post.

    Can you attach your indicator to your response?

    You will find the file under Documents\NinjaTrader 8\bin\Custom\Indicators.

    Comment


      #3
      Originally posted by NinjaTrader_PatrickH View Post
      Hello palinuro,

      Thank you for your post.

      Can you attach your indicator to your response?

      You will find the file under Documents\NinjaTrader 8\bin\Custom\Indicators.
      Sure, I made a new one just for you.

      On my end it's highly repeatable.
      Attached Files

      Comment


        #4
        What video resolution are you using ?

        And your y-axis is in FIXED mode (expanded)?

        What does a 3 pixel look like for you?

        Comment


          #5
          Originally posted by sledge View Post
          What video resolution are you using ?

          And your y-axis is in FIXED mode (expanded)?

          What does a 3 pixel look like for you?
          A 3 width draws correctly. I can also draw a 1-width horizontal line or apply a different indicator with a width of 1 on the chart and it draws correctly.

          This occurs on both my monitors, and changing the y axis makes no difference.

          Comment


            #6
            Originally posted by palinuro View Post
            A 3 width draws correctly. I can also draw a 1-width horizontal line or apply a different indicator with a width of 1 on the chart and it draws correctly.

            This occurs on both my monitors, and changing the y axis makes no difference.
            I see the same thing.

            Plot widths 3 and 4 look to have about the same issue. Can't really tell them apart actually.

            Comment


              #7
              Hello palinuro (and Sledge)

              Thanks for you posts and indicator.

              It is clear that the horizontal draw line is thinner at a width of 1 than the plotted line is at a width of 1. It is also clear that the plotted widths of 1 and 2 appear the same size. The horizontal draw line at width 1 is also as dark as the plotted line at width of 2.

              We will investigate this further and will update this thread when we have information to report.

              Comment


                #8
                Hello palinuro/Sledge,

                We've had a look under the hood and the bottom line is that this (2 px width) is as expected for plots. The reason for this is that plots may not be straight lines and a width of 1 can lead to anti aliasing issues, so for a plot a width of 1 is really 2 as you have observed.

                If you like, I can create a feature request to (optionally) turn off the anti-aliasing feature.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                672 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                379 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                111 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                577 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                582 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X