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

Removing title and parameters when displayed.

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

    Removing title and parameters when displayed.

    Hi folks:

    How do I remove the titles and parameter numbers and setting from indicator charts and strategy charts so they are not displayed?



    Greg

    #2
    Hi Birdog,

    Thank you for your post.

    You can take off the label by going to the indicator properties and deleting the contents in the "Label" field.

    Let me know if this answers your question
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Hey Cal,

      What if I wanted to leave it in the individual indicator but only have that entire label line and parameters/setting removed when displaying a strategy chart.

      Also, what if I only wanted to temporarily on the fly remove the info from a individual indicator as well?

      Greg

      Comment


        #4
        Hi Birdog,

        Unfortunately, you can only have it not display or display entirely.

        You also would not be able to do anything on the fly with the label line
        Cal H.NinjaTrader Customer Service

        Comment


          #5
          Can I have it not display using a command within a strategy only while leaving the indicator intact?

          Comment


            #6
            Birdog,

            I'm not sure if I'm following you correctly.

            You want to have the strategy not display the label while keeping the indicator labels visible or vice versa?
            Cal H.NinjaTrader Customer Service

            Comment


              #7
              Hey Cal:

              Thanks for helping...

              I mean I am looking to not display the strategy label but If/when I ever want to open the indicator independently outside of any strategy if I wanted then the label would be intact (i.e. visible). Does that help?

              Comment


                #8
                Birdog,

                Yes it does.

                Each indicator and strategy as its own label to it. You can have the strategy disabled the label but be able to add a new indicator and have it plot the label.
                Cal H.NinjaTrader Customer Service

                Comment


                  #9
                  Ok. Sounds good...But,where exactly, in a raw code in ninjascript (not the wizard for strategies) would I find each indicator to tell in not to display the name, parameters, settings etc in the chart?

                  I am looking myself too and will post if I figure it out but wanted to ask...thanks...



                  Greg

                  Comment


                    #10
                    Birdog,

                    This would require using unsupported code that we would not be able to assist you in.
                    Cal H.NinjaTrader Customer Service

                    Comment


                      #11
                      Does anyone else have any links, thoughts, or ideas of how to accomplish

                      @koganam or anyone else have any links or thoughts on this?

                      I assume it would be some pretty easy code for someone who knows.

                      When I find a solution, I will post as well for others.

                      Thanks.

                      Greg

                      Comment


                        #12
                        Originally posted by birdog View Post
                        @koganam or anyone else have any links or thoughts on this?

                        I assume it would be some pretty easy code for someone who knows.

                        When I find a solution, I will post as well for others.

                        Thanks.

                        Greg
                        Override the ToString() method in the code.
                        Code:
                        public override string ToString()
                                 {
                                                  return "";
                                 }
                        That just blanks out the label. You can customize it in any manner that you wish. Here is a reference sample: http://www.ninjatrader.com/support/f...ead.php?t=4749

                        Comment


                          #13
                          Thank you @Koganam ! I will be trying it and will report back results....

                          Also, thanks @NinjaTrader_Cal for the dialogue in the beginning.

                          Comment

                          Latest Posts

                          Collapse

                          Topics Statistics Last Post
                          Started by bortz, 11-06-2023, 08:04 AM
                          47 responses
                          1,607 views
                          0 likes
                          Last Post aligator  
                          Started by jaybedreamin, Today, 05:56 PM
                          0 responses
                          9 views
                          0 likes
                          Last Post jaybedreamin  
                          Started by DJ888, 04-16-2024, 06:09 PM
                          6 responses
                          19 views
                          0 likes
                          Last Post DJ888
                          by DJ888
                           
                          Started by Jon17, Today, 04:33 PM
                          0 responses
                          6 views
                          0 likes
                          Last Post Jon17
                          by Jon17
                           
                          Started by Javierw.ok, Today, 04:12 PM
                          0 responses
                          15 views
                          0 likes
                          Last Post Javierw.ok  
                          Working...
                          X