Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

edit description for Value2 of PropertyDescriptorCollection

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

    edit description for Value2 of PropertyDescriptorCollection

    i am working on a new BarType and would like to edit the Description for the optional parameter Value2.

    can make that item show up in the configure DataSeries window, but i haven't (yet) found an example of how to change the default verbiage.

    is there a document or example that illustrates this?

    cheers,
    -e

    #2
    Hi e,

    Unfortunately a How-to documentation is not available for custom bar types. The source code is available for BarTypes and commented in various points. You can view by going to:
    My Documents\NinjaTrader 7\bin\custom\type\@BarTypes.cs

    Example from source code:
    // here is how you change the display name of the property on the properties grid
    Gui.Design.DisplayNameAttribute.SetDisplayName(pro perties, "Value", "\r\rValue");
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      thanks ... i saw that and understand how to set the DisplayName.

      my question is about the Description, which is the string that displays the default "Data Series value." for Value and Value2. how do i set some meaningful text in there?

      also, could we get a Value3 which is a double? there is currently no way to input a percentage for BarTypes. (you can pass that along as a suggestion).

      cheers,
      -e

      Comment


        #4
        I don't believe this is available to you. Performed a search for "Data Series Value" in the BarTypes source code and didn't locate anything. There's nowhere else in the platform that this would be available to edit.

        I will pass on your suggestion for double type in the value field.
        Ryan M.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

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