Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DrawRectangle

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

    DrawRectangle

    How would I set the Width & DashStyle?

    BackColor is being set to "ActiveCaption" even though I am setting it to a real color...okay, it appears the DrawRec does not have access to the same pallette as DrawBackColor... :-(

    It would be nice to be able to designate StartDateTime & EndDateTime instead of BarsAgo...and be able to Draw into the future...

    #2
    You can not set either of those properties programmatically unfortunately. All drawing method color properties have access to the same .NET color structures.

    Are you saying that if you do something like:

    DrawRectangle(string tag, int startBarsAgo, double startY, int endBarsAgo, double endY, Color.Red)

    The rectangle is not painted as red?
    RayNinjaTrader Customer Service

    Comment


      #3
      Actually, I set my colors as:

      private Color Yellow1 = Color.FromArgb (255, 255, 160);

      Works withh BackColorAll...

      Comment


        #4
        For the wish list:

        To be able to programatically draw whatever can be manually drawn...(access to all properties)

        Thanks!

        Comment


          #5
          I see, this is .NET stuff, not sure why it would not work.
          RayNinjaTrader Customer Service

          Comment


            #6
            Using the same Tag; if I change color & Y co-ords...should the Rect not move?

            Comment


              #7
              No, not .Net stuff,

              It's NT making the Properties available for modification...

              Comment


                #8
                Sorry, then I don't follow.

                Can you clarify what does not work? I was led to believe that you state passing in a color structure into the DrawRectangle() method is not working. I suspect now this is NOT the problem.
                RayNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                574 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                333 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                101 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                553 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                551 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X