Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

option to choose code-markup for Input Parameters

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

    option to choose code-markup for Input Parameters

    Two requests:

    1) NinjaScript editor automatically creates inputs (with Wizard or anyway) with this example markup
    (NAME is the 1st, ORDER is 2nd, GroupName is 3rd )

    Code:
    [Display(Name="Length of Moving Average", Order=1, GroupName="Parameters")]
    public bool emaLength
    { get; set; }
    
    [Display(Name="Line width", Order=1, GroupName="Parameters")]
    public int lineWidth
    { get; set; }
    
    ....
    ...


    I ALWAYS RE-FORMAT my ninjascripts with this different order of parameters:
    Code:
    [Display(GroupName="Parameters", Order=1, Name="Length of Moving Average")]
    public bool emaLength { get; set; }
    
    [Display(GroupName="Parameters", Order=2, Name="Line width")]
    public int lineWidth  { get; set; }
    
    ....
    thus the hierarchy is also better (starting with GROUP <-- Parent), and then order, and then name, Also very clean looking and nicer readability (btw, the inline {get; set} is just my preference also, you can ignore that).
    So, somewhere in NinjaEditor Settings, please make an option to set that order, instead of the existing structure.



    2) it will be good, that having a separate:

    [NinjaScriptProperty]

    it was good, there was ability that NinjaTrader understand that property inline with:

    [Display(GroupName="Parameters", NinjaScriptProperty=true/false ,........)]

    so, inline will be a bit cleaner.

    #2
    Hello TazoTodua,

    Thanks for your additional suggestions.

    For the first item: SFT-3474 for reorganizing properties and attribute syntax from NinjaScript code wizards.

    For the second item: SFT-3475 for condensing all NinjaScript property attributes to one line.

    As with other feature requests, we collect interest before determining if the feature should be implemented. For that reason we cannot offer an ETA. Upon implementation, the number for the ticket ID can be publicly found in the Release Notes page of the help guide. I will provide a link below.

    Release Notes - https://ninjatrader.com/support/help...ease_notes.htm

    Please let us know if there is anything else we can do to assist.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ScottWalsh, 04-16-2024, 04:29 PM
    7 responses
    34 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by cls71, Today, 04:45 AM
    0 responses
    1 view
    0 likes
    Last Post cls71
    by cls71
     
    Started by mjairg, 07-20-2023, 11:57 PM
    3 responses
    213 views
    1 like
    Last Post PaulMohn  
    Started by TheWhiteDragon, 01-21-2019, 12:44 PM
    4 responses
    544 views
    0 likes
    Last Post PaulMohn  
    Started by GLFX005, Today, 03:23 AM
    0 responses
    3 views
    0 likes
    Last Post GLFX005
    by GLFX005
     
    Working...
    X