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 CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        51 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        31 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        99 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        177 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        170 views
        0 likes
        Last Post CarlTrading  
        Working...
        X