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

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 cre8able, 02-11-2023, 05:43 PM
        3 responses
        236 views
        0 likes
        Last Post rhubear
        by rhubear
         
        Started by frslvr, 04-11-2024, 07:26 AM
        8 responses
        113 views
        1 like
        Last Post NinjaTrader_BrandonH  
        Started by stafe, 04-15-2024, 08:34 PM
        10 responses
        46 views
        0 likes
        Last Post stafe
        by stafe
         
        Started by rocketman7, Today, 09:41 AM
        3 responses
        11 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by traderqz, Today, 09:44 AM
        2 responses
        10 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Working...
        X