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

Hiding Indicators

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

    Hiding Indicators

    I have an indicator that I want to be hidden. I use this indicator to be called within another indicator is there a way to lock or hide the indicator?

    #2
    Hello ballboy11,
    Thanks for your post.

    You could just set the indicators plot brush to transparent which would remove anything visible from the UI.

    What specifically do you mean by "locked"?


    Josh G.NinjaTrader Customer Service

    Comment


      #3
      I don't want the indicator to be displayed when one clicks on the add indicator button.

      Comment


        #4
        I need the indicator to be used for my other indicators.

        Comment


          #5
          There is not a way to do that. If you really wanted it hidden you could mess around with partial classes and just have it inside the primary indicator.

          Code:
          namespace NinjaTrader.NinjaScript.Indicators
          {
              public partial class Indicator
              {
                  public int SomeValue { get; set; }
          
                  public void SomeMethod()
                  {
          
                  }
              }
          }
          Josh G.NinjaTrader Customer Service

          Comment


            #6
            So instead of an indicator can one build a class for NT indicators to use. I have an algorithm that I use for my indicators but I dont need it public. I need to reference it in order to do the math. Example an ema , swing, bolliinger indicators can be called within an indicator. I have my own algorithm that I use many times that doesn;t need graphical or plotting references.

            Comment


              #7
              I just realized you are asking in regards to NT7. Sorry about any frustration if this was not working for you.

              This would have been done with a "User Defined Method" in NT7. Have you explored this as an option?
              Josh G.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by warreng86, 11-10-2020, 02:04 PM
              7 responses
              1,360 views
              0 likes
              Last Post NinjaTrader_Manfred  
              Started by Perr0Grande, Today, 08:16 PM
              0 responses
              5 views
              0 likes
              Last Post Perr0Grande  
              Started by elderan, Today, 08:03 PM
              0 responses
              9 views
              0 likes
              Last Post elderan
              by elderan
               
              Started by algospoke, Today, 06:40 PM
              0 responses
              10 views
              0 likes
              Last Post algospoke  
              Started by maybeimnotrader, Today, 05:46 PM
              0 responses
              14 views
              0 likes
              Last Post maybeimnotrader  
              Working...
              X