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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        152 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        89 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        131 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        127 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        107 views
        0 likes
        Last Post CarlTrading  
        Working...
        X