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

How to hide details from chart?

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

    How to hide details from chart?

    I am developing an indicator that uses various existing indicators (ie. sma, ema, etc..) How do I hide all of it from showing up on the upper left corner of the chart?
    I just want it to show my indicator name and not all the stuff i am using in my indicator?


    #2
    if (State == State.Configure)
    {

    Name = "";
    }

    Comment


      #3
      Hello priceisking,

      ballboy11 is correct in that the Name is what is used for the Label. I just wanted to throw in State.SetDefaults is what is used for pulling default settings. State.Configure is where you can override those settings.

      Chelsea B.NinjaTrader Customer Service

      Comment


        #4
        Thank you for your replies. When i do that it does take the name off the chart, however, if i am using EMA's or SMA's or VWAP or anything else in my custom indicator, it still shows up on the upper corner as EMA or sma or vwap being used. Is there a way to hide that?

        Comment


          #5
          Hello priceisking,

          I just want to clarify, you mention you are using EMA in your indicator (not strategy) and this is causing your custom indicator's label to appear when the Name property is an empty string?

          From example:

          Values[0][0] = EMA(14)[0];

          This would set the internal indicators plot value to the value of the EMA.

          I would not expect this to cause the Name to appear of your custom indicator.
          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            ahh. .. got it. . . . i had another strategy that was still showing up that I didn't remove. Seems like the indicator update worked as you described it.

            Is there a similar way to do that with strategy?

            Comment


              #7
              Hello priceisking,

              Are you asking about setting the Name property of the strategy or setting the indicators.Name property from the variable holding the indicator that is passed to AddChartIndicator()?
              Chelsea B.NinjaTrader Customer Service

              Comment


                #8
                not the name property.
                When i use AddChartIndicator() in the strategy, and if one strategy has an EMA, then it displays that on the upper left corner.

                Comment


                  #9
                  Hello priceisking,

                  You will need to set the indicators Name property.

                  private EMA myEMA;

                  myEMA = EMA(14);

                  myEMA.Name = string.Empy;

                  AddChartIndicator(myEMA);
                  Chelsea B.NinjaTrader Customer Service

                  Comment


                    #10
                    ok thank you so much!

                    Comment


                      #11
                      That did the trick. Is there a way to stop them from showing up on the indicator tab? Even though it's configured and programmed in the strategy, if i use it, it still shows up loaded on the indicator button. Is there a way to have them stop showing up there ?

                      Comment


                        #12
                        Hello priceisking,

                        It is not possible to prevent instances of indicators added to chars from appearing in the Indicators window configured area.
                        Chelsea B.NinjaTrader Customer Service

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by selu72, Today, 02:01 PM
                        1 response
                        7 views
                        0 likes
                        Last Post NinjaTrader_Zachary  
                        Started by WHICKED, Today, 02:02 PM
                        2 responses
                        11 views
                        0 likes
                        Last Post WHICKED
                        by WHICKED
                         
                        Started by f.saeidi, Today, 12:14 PM
                        8 responses
                        21 views
                        0 likes
                        Last Post f.saeidi  
                        Started by Mikey_, 03-23-2024, 05:59 PM
                        3 responses
                        51 views
                        0 likes
                        Last Post Sam2515
                        by Sam2515
                         
                        Started by Russ Moreland, Today, 12:54 PM
                        1 response
                        8 views
                        0 likes
                        Last Post NinjaTrader_Erick  
                        Working...
                        X