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

ToString() Replacement

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

    #16
    Hello Joe_T,

    Thanks for your post.

    As a result of this thread, several votes were added to the existing feature request SFT-477 which concerns the display name of the indicator.

    Feature requests are used to track demand for a feature and are not a guarantee of implementation. If implemented the feature request would be identified in the release note of NinjaTrader8.
    Paul H.NinjaTrader Customer Service

    Comment


      #17
      Originally posted by JerryWar View Post
      One of the Reasons, I want to null out the Name is that I do not want to display the complete
      list of indicator inputs along with the name especially given that NT8 displays the Hex representation
      of colors. Maybe there could be a separate UI input added for "Display Indicator Inputs"
      Hello JerryWar,

      Thanks for your post.

      You can use the DisplayName method and assign a text name. This is exactly what I did with the indicator "Repeater" in the NT8 indicator downloads:

      public override string DisplayName
      {
      get { return "RepeaterV2.1"; } // to prevent showing all parameters (60+) on the chart
      }

      See attached example on chart

      Reference: http://ninjatrader.com/support/helpG...isplayname.htm
      Attached Files
      Paul H.NinjaTrader Customer Service

      Comment


        #18
        Originally posted by NinjaTrader_Paul View Post
        Hello Joe_T,

        Thanks for your post.

        As a result of this thread, several votes were added to the existing feature request SFT-477 which concerns the display name of the indicator.

        Feature requests are used to track demand for a feature and are not a guarantee of implementation. If implemented the feature request would be identified in the release note of NinjaTrader8.
        Please add me to the request list.

        Thanks.

        Comment


          #19
          ToString() Replacement

          Originally posted by NinjaTrader_Paul View Post
          Hello Joe_T,

          Thanks for your post.

          As a result of this thread, several votes were added to the existing feature request SFT-477 which concerns the display name of the indicator.

          Feature requests are used to track demand for a feature and are not a guarantee of implementation. If implemented the feature request would be identified in the release note of NinjaTrader8.
          Just as clarification, it is NOT just the name of the indicator(s) string can be changed, but also to add a user changeable "Chart Title" for the purposes of printing or taking a snapshot.

          Thanks,
          Joe_T

          Comment


            #20
            Hello Joe_T,

            Thanks for your post.

            Your suggestions had previously been added to the feature request.

            Thanks for your suggestions for improvement to NinjaTrader8.
            Paul H.NinjaTrader Customer Service

            Comment


              #21
              Originally posted by NinjaTrader_Paul View Post
              As a result of this thread, several votes were added to the existing feature request SFT-477 which concerns the display name of the indicator.

              Feature requests are used to track demand for a feature and are not a guarantee of implementation. If implemented the feature request would be identified in the release note of NinjaTrader8.
              Please add my vote.

              Comment


                #22
                A key issue is that one can, for instance, change the string to "" and make it where the indicator isn't listed at the top of the chart, but this has the undesired side-effect that the indicator is depicted as a blank line in the Indicators dialog when editing the list of indicators applied to the chart.
                Bruce DeVault
                QuantKey Trading Vendor Services
                NinjaTrader Ecosystem Vendor - QuantKey

                Comment


                  #23
                  Here is a visual.
                  Attached Files

                  Comment


                    #24
                    Originally posted by Bruce DeVault View Post
                    A key issue is that one can, for instance, change the string to "" and make it where the indicator isn't listed at the top of the chart, but this has the undesired side-effect that the indicator is depicted as a blank line in the Indicators dialog when editing the list of indicators applied to the chart.
                    This appears to work


                    Code:
                    public override string DisplayName
                    {
                    	 
                    		get { if  (State == State.SetDefaults) return "StrategyName"; else  return "";  }
                      
                    }

                    Comment


                      #25
                      That is a good idea for a work-around, thank you - still, there is no guarantee they will always do it that way so I think it would remain wise to seek a supported solution.
                      Bruce DeVault
                      QuantKey Trading Vendor Services
                      NinjaTrader Ecosystem Vendor - QuantKey

                      Comment


                        #26
                        Originally posted by sledge View Post

                        This appears to work


                        Code:
                        public override string DisplayName
                        {
                        
                        get { if (State == State.SetDefaults) return "StrategyName"; else return ""; }
                        
                        }
                        Very nice! This is a great solution to a perennial grievance of mine.

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by Irukandji, Today, 09:34 AM
                        0 responses
                        3 views
                        0 likes
                        Last Post Irukandji  
                        Started by TraderBCL, Today, 04:38 AM
                        3 responses
                        25 views
                        0 likes
                        Last Post NinjaTrader_Jesse  
                        Started by WeyldFalcon, 08-07-2020, 06:13 AM
                        11 responses
                        1,423 views
                        0 likes
                        Last Post jculp
                        by jculp
                         
                        Started by RubenCazorla, Today, 09:07 AM
                        0 responses
                        4 views
                        0 likes
                        Last Post RubenCazorla  
                        Started by BarzTrading, Today, 07:25 AM
                        2 responses
                        29 views
                        1 like
                        Last Post BarzTrading  
                        Working...
                        X