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

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.
    JimNinjaTrader Customer Service

    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.
        JimNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by funk10101, Today, 09:43 PM
        0 responses
        3 views
        0 likes
        Last Post funk10101  
        Started by pkefal, 04-11-2024, 07:39 AM
        11 responses
        36 views
        0 likes
        Last Post jeronymite  
        Started by bill2023, Yesterday, 08:51 AM
        8 responses
        44 views
        0 likes
        Last Post bill2023  
        Started by yertle, Today, 08:38 AM
        6 responses
        26 views
        0 likes
        Last Post ryjoga
        by ryjoga
         
        Started by algospoke, Yesterday, 06:40 PM
        2 responses
        24 views
        0 likes
        Last Post algospoke  
        Working...
        X