Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custom Brushes on ChartStyles

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

    Custom Brushes on ChartStyles

    I've been making a custom chart style. I've followed the instructions at the following link to create custom brushes.



    It works for Indicators, but with a chart Style it doesn't seem to work. Are custom brushes confirmed to work with Chart Styles?

    #2
    Hello frantic,

    Thanks for opening the thread.

    ChartStyles use SharpDX rendering and will use SharpDX Brushes instead of Windows Media Brushes.

    User defined brushes can be selected through the UpBrush, DownBrush, Stroke1, and Stroke2 properties. Custom brushes can be used as long as they are SharpDX brushes. The open source ChartStyles may give some further direction on the types of brushes used and how they are used.

    Documentation reference for using ShapDX brushes can be found here: https://ninjatrader.com/support/help...shTypesSharpDX

    And here: https://ninjatrader.com/support/help...t2d1_brush.htm

    Other ChartStyle items can be referenced here: https://ninjatrader.com/support/help...hart_style.htm

    If you have any specific questions, would you mind sharing an example of what you are working on so we can provide more direct answers?

    We'll be happy to assist you further as needed.

    Comment


      #3
      Hey Jim,

      Thanks for responding. I'm trying to make a chart style with custom bar colors. If I add a custom color in an indicator it appears in the dropdown list in the UI. But this doesn't seem to happen for a chartstyle.

      I've attached a small example, with a couple of custom Brushes defined. These don't show up in the MyBrush dropdown.
      Attached Files

      Comment


        #4
        Hello frantic,

        Thanks for the example, I see what you are asking.

        I'm checking if this behavior is expected and will write back with more details.

        EDIT: Product Management is moving towards making this CustomBrush behavior consistent throughout the platform. This is being tracked with ticket ID NTEIGHT-12767.

        This ticket ID can be found in the Release Notes page of the help guide once this change has been applied. We cannot present an ETA as changes to the codebase are fulfilled based on the development team's schedule and priorities.

        Release Notes: https://ninjatrader.com/support/help...ease_notes.htm

        Thanks again for noticing and bringing it up!
        Last edited by NinjaTrader_Jim; 04-26-2018, 12:29 PM.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        571 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        330 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        548 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        548 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X