Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Access to NT Color Picker

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

    Access to NT Color Picker

    Hi,

    Is it possible to use the color picker used by NT8 in the indicator setup page from a custom XAML page?

    I have a custom NTWindow that I show when a button is clicked in my custom indicator. On this window I would like to allow the user to choose a color from a drop down box and if I could just re-use the color selector already built into NT8 it would be a huge bonus!

    Thanks for any help,
    John

    #2
    Hi John,

    This is not documented or officially supported but the object type is:
    Code:
    System.Windows.Controls.WpfPropertyGrid.Controls.BrushPicker
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_ChelseaB View Post
      Hi John,

      This is not documented or officially supported but the object type is:
      Code:
      System.Windows.Controls.WpfPropertyGrid.Controls.BrushPicker
      Awesome! Thank you very much Chelsea. This is going to help a lot!

      Comment


        #4
        Hello everyone, that's exactly what I was looking for ;-) can anyone tell me how the colorpicker was integrated? I now have a button, this opens a new window. To my understanding. I now have to put the colorpicker in the .xml (if so, how?), or in the button .cs file.?
        sidlercom80
        NinjaTrader Ecosystem Vendor - Sidi Trading

        Comment


          #5
          Hi, thanks for posting. I was not able to find any implementation of this BrushPicker, but you can add a color picker property to your script like this:

          Code:
           [XmlIgnore]
                  [Display(Name="Up direction Bar Color", Description="Price bar color when indicator is up", Order=41, GroupName="Actions")]
                  public Brush BarColorUp
                  { get; set; }
          
                  [Browsable(false)]
                  public string BarColorUpSerializable
                  {
                      get { return Serialize.BrushToString(BarColorUp); }
                      set { BarColorUp = Serialize.StringToBrush(value); }
                  }

          Comment


            #6
            Hi _ChrisL, thank you for your answer, but unfortunately I don't understand what you mean, in your example it is a normal brush property.
            sidlercom80
            NinjaTrader Ecosystem Vendor - Sidi Trading

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by CarlTrading, 03-31-2026, 09:41 PM
            1 response
            77 views
            1 like
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            40 views
            0 likes
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            63 views
            2 likes
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            63 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            53 views
            0 likes
            Last Post CarlTrading  
            Working...
            X