Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Read Only Properties on Strategy Interface

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

    Read Only Properties on Strategy Interface

    Greetings for all forum members and Ninja Trader Support.

    I found a good your code sample how to handle "read-only" properties but something is wrong and I can figure out why it doesn't work as it should, so decided to ask more experienced people to find a solution.

    First of all I would like to explain what my goal exactly is. Depending on TpSlType property which is enum I want to achieve "readonly" visibility for others connected with options which haven't been choosen.

    For example:
    If I have a TickMode then only properties should be: Sl ticks, TP ticks ----> the rest of them read only
    If I have a Fixed RR mode then only properties should be: Sl ticks, ChooseRiskRatio ----> the rest of them read only
    and analogic for FibBased.

    The additional classes about it are on the end of code.

    Thanks for your help !
    Attached Files

    #2
    Topic can be closed. I figured out what was the problem :>

    Comment


      #3
      Click image for larger version

Name:	nt8.png
Views:	134
Size:	5.4 KB
ID:	1335682 Or maybe not.

      The interface looks fine in Backtest in Strategy Analyzer and within chart when I add a strategy to it, but there is a problem with Optimizer
      The properties (On picture SL TICKS and PROFIT Ticks can be optimized:

      Comment


        #4
        Hello darthTraderrr,

        Unfortunately, that is expected behavior.

        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Thank you for your answer. It saved my time. I will patiently wait for the future when the handling of it will be available !

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          87 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          128 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          65 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          117 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          67 views
          0 likes
          Last Post PaulMohn  
          Working...
          X