Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Checkbox along with a String Input Parameter

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

    Checkbox along with a String Input Parameter

    Hi,

    I'm developing an indicator that has several string input parameters. My objective is to attach a boolean/check box input along with each string input. I'm able to place one check box below each string input parameter using code like this:

    [NinjaScriptProperty]
    [Display(Name = "RedTime", Order = 1, GroupName = "Settings")]
    public string RedTime
    { get; set; }

    [NinjaScriptProperty]
    [Display(Name = "Red", Order = 2, GroupName = "Settings")]
    public bool Red
    { get; set; }

    With this code, I'll see two rows for each pair (one for string input and the other for checkbox input) in the indicator settings. Because there are several pairs, I need an arrangement like these two appear in one row i.e. the check box appears in the same row as that of the string input parameter either before or after it. In this way, there would not be an additional row for every check box. Is it possible in Ninja Script? Please help if there is such a property or a data type which can make this arrangement possible?

    Thanks



    #2
    Hello Mubeen Haider,

    Thank you for the post.

    With the current property grid in the platform it would not be possible to have two bool's in the same row, each property has its own row. The best solution would be to use the group name to hold the sets of bools in individual groups.

    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    648 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    369 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    108 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    572 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    574 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X