Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Changing value of Property, when another property changes

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

    Changing value of Property, when another property changes

    I am using IndicatorBaseConverter to toggle some input properties visibility On/Off from the Indicator UI.

    I would like to change the existing value of a property, base on value of another property.

    For example, if I have a property such as fastPeriod, I would like to set the value 1 to it, if UsePeriod is set false using the UI.

    #2
    Hello Shai Samuel,

    Thanks for your post.

    Please see this reference sample from the NinjaTrader 8 help guide which demonstrates using a TypeConverter to customize property grid behavior:




    There are 5 different use cases demonstrated in the reference sample linked above.

    1. Dynamically manipulate what is displayed on the UI Property Grid
    a. Show / hide properties based on secondary input
    b. Disable / enable properties based on secondary input






    2. Customizing how a property is displayed
    a. Display "Friendly" enum values
    b. Re-implement a "bool" CheckBox as "Friendly" a ComboBox
    c. Display a custom collection / list with user defined values at run time






    Let me know if I may further assist.​
    Last edited by NinjaTrader_BrandonH; 10-04-2022, 06:59 AM.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      NinjaTrader_BrandonH An observation on details in your post. The link (and its display) are incorrect, and have a space introduced in the text. Absolutely no doubt you entered everything correctly! This is a flaw in the Forum software that has been obvious for a long time. It sometimes introduces a space in the middle of text. When it happens, one can edit and repost, and that sometimes fixes it, but other times, the flaw persists. This should be fixed by the Forum software provider.

      Thanks.
      Multi-Dimensional Managed Trading
      jeronymite
      NinjaTrader Ecosystem Vendor - Mizpah Software

      Comment


        #4
        Thank you Brandon.

        My guess @jeronymite​ is that you are right. Anyway I found the correct like:
        https://ninjatrader.com/support/helpGuides/nt8/NT%20HelpGuide%20English.html?using_a_typeconverte r_to_custo.htm

        Comment


          #5
          Hello jeronymite and Shai Samuel,

          Thanks for your notes.

          I have reposted the link in post # 2 so that it leads to the correct reference sample and reported this behavior.

          Please let me know if I may assist further.
          <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          598 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          343 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          103 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          557 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          556 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X