Announcement

Collapse
No announcement yet.

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)]
        DierkNinjaTrader Customer Service

        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 mr_trade, 11-26-2020, 05:01 PM
          5 responses
          58 views
          0 likes
          Last Post mr_trade  
          Started by evanp90, 01-14-2021, 07:03 PM
          3 responses
          32 views
          0 likes
          Last Post fx.practic  
          Started by fernlicht, Today, 04:01 AM
          1 response
          8 views
          0 likes
          Last Post NinjaTrader_Jason  
          Started by Leeroy_Jenkins, Today, 03:51 AM
          1 response
          12 views
          0 likes
          Last Post Leeroy_Jenkins  
          Started by minds2010, Today, 03:38 AM
          0 responses
          10 views
          0 likes
          Last Post minds2010  
          Working...
          X