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 Segwin, 05-07-2018, 02:15 PM
      14 responses
      1,788 views
      0 likes
      Last Post aligator  
      Started by Jimmyk, 01-26-2018, 05:19 AM
      6 responses
      837 views
      0 likes
      Last Post emuns
      by emuns
       
      Started by jxs_xrj, 01-12-2020, 09:49 AM
      6 responses
      3,293 views
      1 like
      Last Post jgualdronc  
      Started by Touch-Ups, Today, 10:36 AM
      0 responses
      12 views
      0 likes
      Last Post Touch-Ups  
      Started by geddyisodin, 04-25-2024, 05:20 AM
      11 responses
      62 views
      0 likes
      Last Post halgo_boulder  
      Working...
      X