Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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
    Paul H.NinjaTrader Customer Service

    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.

          Paul H.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by AaronKoRn, Yesterday, 09:49 PM
          0 responses
          11 views
          0 likes
          Last Post AaronKoRn  
          Started by carnitron, Yesterday, 08:42 PM
          0 responses
          10 views
          0 likes
          Last Post carnitron  
          Started by strategist007, Yesterday, 07:51 PM
          0 responses
          11 views
          0 likes
          Last Post strategist007  
          Started by StockTrader88, 03-06-2021, 08:58 AM
          44 responses
          3,981 views
          3 likes
          Last Post jhudas88  
          Started by rbeckmann05, Yesterday, 06:48 PM
          0 responses
          9 views
          0 likes
          Last Post rbeckmann05  
          Working...
          X