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 indicator in list ?

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

    How to hide indicator in list ?

    Hi.
    i have some indicators that i access only from codes, and I dont want them to show up in Chart while opening Indicators window (however, i want them to show in NinjaScript editor of course).

    is that possible?

    what parameter should i code in indi to achieve that?

    #2
    Hello,

    Thank you for the post.

    I am unsure of a parameter to hide an indicator from the indicators list specifically, I will need to research that further.

    One solution would be to use a namespace/folder for your custom indicators. They should then show up in a single folder in the list.
    Another alternative would be if these are helper scripts and not necessarily indicators, you could use a partial indicator class, those would not show up in the list but could be accessed by an indicator.

    Once I have further details if there is a specific property to omit an indicator from the list I will post that here.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      I have put in a feature request for an "IsCodeOnly" property as this concept currently does not exist. The ID is: SFT-3027

      If any forum members have alternate solutions, for the time being, they can post here as well.

      I look forward to being of further assistance.
      Last edited by NinjaTrader_Jesse; 02-13-2018, 11:30 AM.
      JesseNinjaTrader Customer Service

      Comment


        #4
        Jesse, i couldnt fully understand how partial indicator wont show up... for example, i am using this as a helper, but shows up in indicators list on chart window:



        how can i hide that?

        or how the `indicator.cs` is hidden at all from the list? (but it's present in actual folder of indicators, but it doesnt show up even in IDE list).
        Last edited by ttodua; 03-22-2018, 04:15 PM.

        Comment


          #5
          Hello TazoTodua,

          You could create a partial indicator class that should be hidden from the indicators list simply changing

          Code:
          namespace NinjaTrader.NinjaScript.Indicators.VolumeRatiosTradePack.backend_files___dont_use
          {
          public class z_mainstream5 : Indicator
          {
          to
          Code:
          namespace NinjaTrader.NinjaScript.Indicators.VolumeRatiosTradePack.backend_files___dont_use
          {
          public [B]partial[/B] class z_mainstream5 : Indicator
          {
          There is also a short section in the "Code Breaking Changes" section of the help guide regarding partial classes. It will be located near the bottom of the "Implementation Changes Overview" section, if you are interested.

          Implementation Changes Overview
          https://ninjatrader.com/support/help...hangesOverview

          Please let me know if you have any questions.
          Last edited by NinjaTrader_JoshG; 10-17-2018, 01:41 PM.
          Josh G.NinjaTrader Customer Service

          Comment


            #6
            No Josh, I have tried that, but it doesnt hide from the list. you can check yourself.

            Comment


              #7
              Hello TazoTodua,

              I have tested this further and see that creating a partial indicator class does not hide the indicator as I initially thought it did.

              Since this is the case it does not seem that you would be able to hide a partial class from the list and we would require the "IsCodeOnly" property that Jesse submitted as a feature request.

              We will leave this forum post open for any users that may want to comment on this item.
              Josh G.NinjaTrader Customer Service

              Comment


                #8
                Any news?

                I see that a worst-case "workaround" could be:

                protected override void OnStateChange()
                {
                if ( Parent == null)
                throw new Exception("break indi");
                }
                and if this indicator is not being included in other indis, then this causes the error while opening up the Indicators list on chart, and thus, that indicator wont be in the list, but then in the NinjaTrader Log a new "Error entry is added" and it is bad. Is that possible to workaround for this?

                Comment


                  #9
                  Hello TazoTodua,

                  Using this "workaround" is beyond anything we are able to support, and removing log messages would not be something that is currently possible. If you have any suggestions for a feature request in this regard I would love to hear them. I am leaving this post open for anyone that wants to comment or has any ideas.

                  For updates on feature requests please stay tuned to our release notes documentation.
                  Release Notes

                  Please let me know if you have any further questions.
                  Josh G.NinjaTrader Customer Service

                  Comment


                    #10
                    I'm also interested in this. Has this enhancement request made it in yet?

                    Comment


                      #11
                      martyn73,

                      I went ahead and added a vote on your behalf. We're taking all of the feedback provided regarding this change into consideration, however, there is no timeline on when or if this will be changed.
                      Josh G.NinjaTrader Customer Service

                      Comment


                        #12
                        Is there any update on this? If not, is there another place to actually see the discussion on the topic? I see that there was a feature request with ID SFT-3027 opened but a google search for that returns nothing except this ticket.

                        Comment


                          #13
                          Hello swcooke,

                          Apologies for a delayed response. We had an issue involving notifications for forum posts which has been resolved.

                          SFT-3027 has 2 votes and has not been implemented. I have added a vote on your behalf.

                          Let us know if you have any additional questions.
                          JimNinjaTrader Customer Service

                          Comment


                            #14
                            Please add another vote for me. :-)

                            Comment


                              #15
                              Hi Jim,

                              Can you tell me if there has been any progress on SFT-3027? Also, is there a place on your site where I can track comments/progress on SFT-3027?

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by CortexZenUSA, Today, 12:53 AM
                              0 responses
                              1 view
                              0 likes
                              Last Post CortexZenUSA  
                              Started by CortexZenUSA, Today, 12:46 AM
                              0 responses
                              1 view
                              0 likes
                              Last Post CortexZenUSA  
                              Started by usazencortex, Today, 12:43 AM
                              0 responses
                              5 views
                              0 likes
                              Last Post usazencortex  
                              Started by sidlercom80, 10-28-2023, 08:49 AM
                              168 responses
                              2,265 views
                              0 likes
                              Last Post sidlercom80  
                              Started by Barry Milan, Yesterday, 10:35 PM
                              3 responses
                              11 views
                              0 likes
                              Last Post NinjaTrader_Manfred  
                              Working...
                              X