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

Name of Indicator Input Parameter in Strategy Builder

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

    Name of Indicator Input Parameter in Strategy Builder

    I have a unique problem.

    I have an Input Parameter named Length for my Indicator AshMA.

    In the #region Properties of this indicator I have:

    [GridCategory("Parameters")]
    [Description("NumBars")]
    [NinjaTrader.Gui.Design.DisplayName("NumBars")]
    public int Length
    {
    get { return length; }
    set { length = Math.Max(1, value);
    }

    So even though the parameter is called Length, I want it to show up as NumBars in the GUI.

    The above code works perfectly for Indicator selection window. I can see Numbars as the name of the Input field.

    However, when I bring up Strategy Builder, the name of the Input is length.

    Is there anyway to force Strategy Builder to use the DisplayName ?

    Also I have another Input variable called: mAType.

    The Strategy Builder always displays it as: "M a Type". Is there any way to force the Gui Name ?

    #2
    Hello,

    Thanks for the note.

    Unfortunately there is not a GUI option for the strategy wizard.

    -Brett

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by algospoke, Yesterday, 06:40 PM
    2 responses
    19 views
    0 likes
    Last Post algospoke  
    Started by ghoul, Today, 06:02 PM
    3 responses
    14 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by jeronymite, 04-12-2024, 04:26 PM
    3 responses
    45 views
    0 likes
    Last Post jeronymite  
    Started by Barry Milan, Yesterday, 10:35 PM
    7 responses
    20 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by AttiM, 02-14-2024, 05:20 PM
    10 responses
    181 views
    0 likes
    Last Post jeronymite  
    Working...
    X