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

Suppress Indicator inputs at top of chart

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

    Suppress Indicator inputs at top of chart

    At the top of the chart I would like to only display the indicator names applied to that chart. I would like to disable the display of each individual input parameter and its value for that indicator.

    Is this done in the properties section? Can you show a simple example?

    #2
    Hi,

    Thank you for your post.

    Unfortunately this is currently not possible. I will ask development if they can add your suggestion to the list of future considerations.


    Vince
    Vince B.NinjaTrader Customer Service

    Comment


      #3
      This is on our list for a future version.
      RayNinjaTrader Customer Service

      Comment


        #4
        as this is an old thread, i'm hoping there is a solution now available.

        i have a strategy with numerous parameters and, for simplicity, i would like to just display the name of the strategy on the chart (suppressing all of the inputs).

        can someone please provide code to accomplish this?

        cheers,
        -e

        Comment


          #5
          Hello,

          This has been added in NinjaTrader 7.

          NinjaTrader 7 is in the later stages of beta testing is scheduled for the public beta to be released soon. There is no release date for NinjaTrader 7 yet. Please visit the below link for information on NinjaTrader 7 features and release information:

          Comment


            #6
            hi brett,

            thanks for the quick reply. i am a beta user on NT7b12, but didn't see the code in the reference manual. perhaps i missed it. can you provide it?

            cheers,
            -e

            Comment


              #7
              Copied from the NinjaTrader 7 Features List

              Enhanced Indicator Labels
              You can now set an absolute label by enclosing the label in quotations. Doing so will trim the trailing system added series/parameter information. Instead of seeing "MyIndicator(101 parameters go here......)" you can display only "MyIndicator" if you wish.

              Comment


                #8
                In Initialize:

                Blah Blah etc.
                PaintPriceMarkers = false;
                AutoScale = false;

                Name = "YourIndicatorName";
                }

                public override string ToString()
                {
                return Name;
                }

                /// <summary>
                /// Called on each bar update event (incoming tick)
                /// </summary>
                protected override void OnBarUpdate()
                {
                Blah Blah etc.
                eDanny
                NinjaTrader Ecosystem Vendor - Integrity Traders

                Comment


                  #9
                  brilliant -- thanks so much guys ;-)

                  was particularly interested in doing this for strategy, not indicator, so i'll try eDanny's code. thanks again!

                  cheers,
                  -e

                  Comment


                    #10
                    ok...this is not exactly what i was looking for. by overriding ToString, then won't that mess up any kind of debug or output-window stuff?

                    let me rephrase:
                    what is the property i can set (in Initialize()?) to set that Label like the screenshot Brett posted? or is there another property that will true/false the display of the parameter-values?

                    and...second question...is that property available just for indicators, or also for strategies? i am chiefly interested in this for my strategy code.

                    cheers,
                    -e

                    Comment


                      #11
                      e-man, please take a look at this reference sample titled "Removing and Custom Formatting an Indicator's chart label".
                      AustinNinjaTrader Customer Service

                      Comment


                        #12
                        This is possible when adding a strategy to a chart the same way it is possible with indicators. However if your looking to add other information to the top label String then just a custom name then you will need to use the method posted by Austin to integrate custom parameters or variables that you want added.

                        It is the same label property that is set when you apply an indicator to the chart. Use quotation marks around what you want listed there for it to override the default label.

                        This is with NinjaTrader 7. The latest release of NinjaTrader version 6.5.1000.15 will allow you to edit the label as well, but the parameters will still be listed. You can however delete out the label name to have no label on the top of the chart now.
                        Last edited by NinjaTrader_Brett; 03-30-2010, 03:52 PM.

                        Comment


                          #13
                          thanks for the link, Austin. and thanks for the clarification, Brett. the sample code looks same/similar to eDanny's above ... and it did fix my issue.

                          i was concerned that this would negatively impact inline debug calls, but i'm happy to report that it works just great

                          thanks again!
                          -e
                          Last edited by e-man; 03-31-2010, 11:54 AM.

                          Comment


                            #14
                            Austin - That script Josh wrote back in '07 was right on! Nice job guys...nice job!

                            Comment

                            Latest Posts

                            Collapse

                            Topics Statistics Last Post
                            Started by techgetgame, Yesterday, 11:42 PM
                            0 responses
                            8 views
                            0 likes
                            Last Post techgetgame  
                            Started by sephichapdson, Yesterday, 11:36 PM
                            0 responses
                            2 views
                            0 likes
                            Last Post sephichapdson  
                            Started by bortz, 11-06-2023, 08:04 AM
                            47 responses
                            1,613 views
                            0 likes
                            Last Post aligator  
                            Started by jaybedreamin, Yesterday, 05:56 PM
                            0 responses
                            10 views
                            0 likes
                            Last Post jaybedreamin  
                            Started by DJ888, 04-16-2024, 06:09 PM
                            6 responses
                            20 views
                            0 likes
                            Last Post DJ888
                            by DJ888
                             
                            Working...
                            X