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 cmoran13, 04-16-2026, 01:02 PM
                0 responses
                43 views
                0 likes
                Last Post cmoran13  
                Started by PaulMohn, 04-10-2026, 11:11 AM
                0 responses
                25 views
                0 likes
                Last Post PaulMohn  
                Started by CarlTrading, 03-31-2026, 09:41 PM
                1 response
                163 views
                1 like
                Last Post NinjaTrader_ChelseaB  
                Started by CarlTrading, 04-01-2026, 02:41 AM
                0 responses
                98 views
                1 like
                Last Post CarlTrading  
                Started by CaptainJack, 03-31-2026, 11:44 PM
                0 responses
                158 views
                2 likes
                Last Post CaptainJack  
                Working...
                X