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 traderqz, Today, 12:06 AM
    10 responses
    18 views
    0 likes
    Last Post traderqz  
    Started by algospoke, 04-17-2024, 06:40 PM
    5 responses
    46 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by arvidvanstaey, Today, 02:19 PM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Zachary  
    Started by mmckinnm, Today, 01:34 PM
    3 responses
    5 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by f.saeidi, Today, 01:32 PM
    2 responses
    9 views
    0 likes
    Last Post f.saeidi  
    Working...
    X