Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to mark true only one check every time?

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

  • NinjaTrader_ChelseaB
    replied
    Hello gustavobp,

    You would need to use a custom type converter.

    See the reference sample linked below in the regions 'Use Case #2: Disable/enable properties based on secondary input'.
    Join the official NinjaScript Developer Community for comprehensive resources, documentation, and community support. Build custom indicators and automated strategies for the NinjaTrader platforms with our extensive guides and APIs.

    Leave a comment:


  • gustavobp
    started a topic How to mark true only one check every time?

    How to mark true only one check every time?

    Hello Boys!!!
    I need to make sure that only one of the 2 checks can be true at a time, that is, if I click on one check, the other is automatically deactivated. This is because it makes no sense to have both conditions activated at the same time to preserve the logic of the inputs. How can I do it? Do you have any practical and functional example of how it should be done? Thank you so much!!!​

    [Display(Name = "FAST EMA ABOVE SLOW EMA", Order = 7, GroupName = "Block 1: Condiciones de entrada")]
    public bool ActivarEma9OverEma20Condition { get; set; } = true; // Checkbox para activar que la ema de 9 debe ser mayor a la ema de 20 para abrir una operacion

    [NinjaScriptProperty]
    [Display(Name = "FAST EMA CROOS ABOVE SLOW EMA", Order = 8, GroupName = "Block 1: Condiciones de entrada")]
    public bool ActivarEma9CrossOverEma20Condition { get; set; } = true; // Checkbox para activar que la ema de 9 debe ser mayor a la ema de 20 para abrir una operacion​

Latest Posts

Collapse

Topics Statistics Last Post
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
0 responses
685 views
0 likes
Last Post Geovanny Suaza  
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
0 responses
390 views
1 like
Last Post Geovanny Suaza  
Started by Mindset, 02-09-2026, 11:44 AM
0 responses
112 views
0 likes
Last Post Mindset
by Mindset
 
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
0 responses
585 views
1 like
Last Post Geovanny Suaza  
Started by RFrosty, 01-28-2026, 06:49 PM
0 responses
588 views
1 like
Last Post RFrosty
by RFrosty
 
Working...
X