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

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); }
                  }
          Chris L.NinjaTrader Customer Service

          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 inanazsocial, Today, 01:15 AM
            1 response
            6 views
            0 likes
            Last Post NinjaTrader_Jason  
            Started by rocketman7, Today, 02:12 AM
            0 responses
            10 views
            0 likes
            Last Post rocketman7  
            Started by dustydbayer, Today, 01:59 AM
            0 responses
            2 views
            0 likes
            Last Post dustydbayer  
            Started by trilliantrader, 04-18-2024, 08:16 AM
            5 responses
            23 views
            0 likes
            Last Post trilliantrader  
            Started by Davidtowleii, Today, 12:15 AM
            0 responses
            3 views
            0 likes
            Last Post Davidtowleii  
            Working...
            X