Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Is there a way to control what a strategy displays in its label?

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

    Is there a way to control what a strategy displays in its label?

    I would love if I could do this. There are only a couple of inputs that I'd like to be able to see

    The screenshot shows what I'm talking about - it would be great if I could specify that the two underlined parameters are the only two to display.
    Attached Files

    #2
    Hello WalterSkinner,

    Thanks for your post.

    You can control what is shown indirectly by removing the [NinjaScriptProperty] attribute from the property. Removing that attribute prevents the parameter from being shown on the chart. It does not change the performance unless you are calling the indicator from another script.



    Another alternative you might consider is overriding DisplayName: https://ninjatrader.com/support/help...isplayname.htm

    Comment


      #3
      Originally posted by NinjaTrader_PaulH View Post
      Hello WalterSkinner,

      Thanks for your post.

      You can control what is shown indirectly by removing the [NinjaScriptProperty] attribute from the property. Removing that attribute prevents the parameter from being shown on the chart. It does not change the performance unless you are calling the indicator from another script.



      Another alternative you might consider is overriding DisplayName: https://ninjatrader.com/support/help...isplayname.htm
      Perfect, thanks!

      Comment


        #4
        Originally posted by NinjaTrader_PaulH View Post
        Hello WalterSkinner,

        Thanks for your post.

        You can control what is shown indirectly by removing the [NinjaScriptProperty] attribute from the property. Removing that attribute prevents the parameter from being shown on the chart. It does not change the performance unless you are calling the indicator from another script.



        Another alternative you might consider is overriding DisplayName: https://ninjatrader.com/support/help...isplayname.htm
        Can this be done from a strategy? (I mean overriding DisplayName of indicator from a strategy)?

        Comment


          #5
          Hello UltraNIX,

          Thanks for your post.

          I think the intent of your question is to ask if you can suppress the indicators labels when used in AddChartIndicator().

          The answer would be no.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          45 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          21 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          31 views
          1 like
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          50 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          42 views
          0 likes
          Last Post CarlTrading  
          Working...
          X