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 Rapine Heihei, Today, 07:51 PM
                0 responses
                3 views
                0 likes
                Last Post Rapine Heihei  
                Started by frslvr, 04-11-2024, 07:26 AM
                5 responses
                96 views
                1 like
                Last Post caryc123  
                Started by algospoke, 04-17-2024, 06:40 PM
                6 responses
                49 views
                0 likes
                Last Post algospoke  
                Started by arvidvanstaey, Today, 02:19 PM
                4 responses
                11 views
                0 likes
                Last Post arvidvanstaey  
                Started by samish18, 04-17-2024, 08:57 AM
                16 responses
                61 views
                0 likes
                Last Post samish18  
                Working...
                X