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 Hwop38, 05-04-2026, 07:02 PM
                0 responses
                161 views
                0 likes
                Last Post Hwop38
                by Hwop38
                 
                Started by CaptainJack, 04-24-2026, 11:07 PM
                0 responses
                309 views
                0 likes
                Last Post CaptainJack  
                Started by Mindset, 04-21-2026, 06:46 AM
                0 responses
                245 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by M4ndoo, 04-20-2026, 05:21 PM
                0 responses
                349 views
                0 likes
                Last Post M4ndoo
                by M4ndoo
                 
                Started by M4ndoo, 04-19-2026, 05:54 PM
                0 responses
                179 views
                0 likes
                Last Post M4ndoo
                by M4ndoo
                 
                Working...
                X