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 NullPointStrategies, Yesterday, 05:17 AM
          0 responses
          64 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          139 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          75 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          45 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          50 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X