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 reynoldsn, Today, 07:04 PM
          0 responses
          1 view
          0 likes
          Last Post reynoldsn  
          Started by puapwr, Today, 06:09 PM
          0 responses
          4 views
          0 likes
          Last Post puapwr
          by puapwr
           
          Started by franciscog21, Today, 05:27 PM
          0 responses
          8 views
          0 likes
          Last Post franciscog21  
          Started by hdge4u, 04-29-2024, 12:23 PM
          5 responses
          28 views
          0 likes
          Last Post MisterTee  
          Started by llanqui, 01-25-2024, 06:15 PM
          9 responses
          65 views
          0 likes
          Last Post MisterTee  
          Working...
          X