Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 Waxavi, 04-19-2024, 02:10 AM
                3 responses
                41 views
                0 likes
                Last Post gaz0001
                by gaz0001
                 
                Started by Max238, Today, 01:28 AM
                2 responses
                26 views
                0 likes
                Last Post NinjaTrader_ChristopherJ  
                Started by Shansen, 08-30-2019, 10:18 PM
                25 responses
                949 views
                0 likes
                Last Post NinjaTrader_BrandonH  
                Started by JonesJoker, 04-22-2024, 12:23 PM
                8 responses
                42 views
                0 likes
                Last Post JonesJoker  
                Started by timko, Today, 06:45 AM
                0 responses
                6 views
                0 likes
                Last Post timko
                by timko
                 
                Working...
                X