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

VisualizationOnlyAttribute

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

    VisualizationOnlyAttribute

    Greetings,

    Is there any way to hide an indicator's parameter ?

    I have tried with:

    #region Properties
    [Description("Tipo de media")]
    [Category(
    "Parameters")]
    [Gui.Design.DisplayNameAttribute(
    "03. TipoMedia")]
    [NinjaTrader.Gui.Design.VisualizationOnlyAttribute] <<< ===== !!!
    publicint IntTipoMedia
    {
    get { return intTipoMedia; }
    set { intTipoMedia = (int)tipoMedia; }
    }

    (the value of this parameter is filled with the parameter "tipoMedia". tipoMedia is a custom enum)


    but it looks doesn't work. The parameter isn't hidden.

    Thanks very much.

    #2
    Remove the property and only use the internal variable "intTipoMedia".
    RayNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Ray View Post
      Remove the property and only use the internal variable "intTipoMedia".
      Thanks Ray, but the parameter tipoMedia is a custom enum where the user chooses one average ( SMA, EMA, DEMA, etc).

      The internal variable intTipoMedia is a parameter because is used for interchanging with strategies ( I cant use the custom enum tipoMedia for this purpose, gives compile error ).

      Thanks.

      Comment


        #4
        Try [Browsable(false)]

        Comment


          #5
          Originally posted by NinjaTrader_Dierk View Post
          Try [Browsable(false)]
          Thanks very much ! it works fine

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by frslvr, 04-11-2024, 07:26 AM
          6 responses
          105 views
          1 like
          Last Post NinjaTrader_BrandonH  
          Started by trilliantrader, 04-18-2024, 08:16 AM
          6 responses
          26 views
          0 likes
          Last Post trilliantrader  
          Started by arvidvanstaey, Yesterday, 02:19 PM
          5 responses
          14 views
          0 likes
          Last Post NinjaTrader_Zachary  
          Started by Rapine Heihei, Yesterday, 08:25 PM
          1 response
          12 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by Mongo, Yesterday, 11:05 AM
          6 responses
          27 views
          0 likes
          Last Post Mongo
          by Mongo
           
          Working...
          X