• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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:

        https://pastebin.com/raw/rTtzyWA9

        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 TazoTodua; 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 partial 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.
          JoshNinjaTrader 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.
              JoshNinjaTrader 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.
                  JoshNinjaTrader 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.
                      JoshNinjaTrader Customer Service

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by MarthaClines, Yesterday, 08:06 PM
                      1 response
                      5 views
                      0 likes
                      Last Post NinjaTrader_ChrisL  
                      Started by Trader_Kim, Yesterday, 03:41 PM
                      1 response
                      9 views
                      0 likes
                      Last Post NinjaTrader_ChristopherD  
                      Started by MarthaClines, Yesterday, 06:23 PM
                      1 response
                      3 views
                      0 likes
                      Last Post NinjaTrader_PaulH  
                      Started by DrDave, Today, 06:42 AM
                      1 response
                      2 views
                      0 likes
                      Last Post NinjaTrader_PatrickG  
                      Started by kevinenergy, Today, 06:16 AM
                      1 response
                      4 views
                      0 likes
                      Last Post NinjaTrader_PatrickG  
                      Working...
                      X