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:	107
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 NullPointStrategies, Today, 05:17 AM
          0 responses
          23 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          120 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          63 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          41 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          45 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X