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

How to set border brush to Rectangle?

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

    How to set border brush to Rectangle?

    Hi,

    im trying to draw a rectangle, but in the documentation https://ninjatrader.com/es/support/h..._rectangle.htm there is no constructor with Brush and isGlobal parameters.

    I try to use this constructor Draw.Rectangle(NinjaScriptBase owner, string tag, DateTime startTime, double startY, DateTime endTime, double endY, Brush brush), this draws ok my rectangle with area and border same color, but need to set after the isGlobal but it doesnot work, i found just an attribute called IsGlobalDrawingTool but it is readonly.

    So i try to use the constructor Draw.Rectangle(NinjaScriptBase owner, string tag, DateTime startTime, double startY, DateTime endTime, double endY, bool isGlobal, string templateName) to set after the brush attribute, but only found AreaBrush to set, but i want to set the brush of the border too, because it draws the area with a color and the border with other color and does not know how to assign it.

    Click image for larger version

Name:	Rectangle.PNG
Views:	139
Size:	17.3 KB
ID:	1212019

    Thank you for your help!
    Attached Files

    #2
    arbeydario To change the Rectangle's border/outline colour, have you tried setting the Rectangle's OutlineStroke: https://ninjatrader.com/es/support/h.../rectangle.htm

    Thanks.
    Multi-Dimensional Managed Trading
    jeronymite
    NinjaTrader Ecosystem Vendor - Mizpah Software

    Comment


      #3
      Thank you jeronymite, it works!!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by llanqui, Today, 03:53 AM
      0 responses
      3 views
      0 likes
      Last Post llanqui
      by llanqui
       
      Started by burtoninlondon, Today, 12:38 AM
      0 responses
      10 views
      0 likes
      Last Post burtoninlondon  
      Started by AaronKoRn, Yesterday, 09:49 PM
      0 responses
      14 views
      0 likes
      Last Post AaronKoRn  
      Started by carnitron, Yesterday, 08:42 PM
      0 responses
      11 views
      0 likes
      Last Post carnitron  
      Started by strategist007, Yesterday, 07:51 PM
      0 responses
      14 views
      0 likes
      Last Post strategist007  
      Working...
      X