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:	115
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 CarlTrading, 03-31-2026, 09:41 PM
          1 response
          43 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          20 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          29 views
          1 like
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          46 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          38 views
          0 likes
          Last Post CarlTrading  
          Working...
          X