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 Franck Z, Today, 09:49 AM
          0 responses
          6 views
          0 likes
          Last Post Franck Z  
          Started by pvtrader, Today, 08:02 AM
          2 responses
          7 views
          0 likes
          Last Post pvtrader  
          Started by Natoc, Today, 03:04 AM
          1 response
          17 views
          0 likes
          Last Post NinjaTrader_Jason  
          Started by Rudy2323, Today, 02:56 AM
          2 responses
          28 views
          0 likes
          Last Post Rudy2323  
          Started by tonynt, Yesterday, 02:07 PM
          1 response
          38 views
          0 likes
          Last Post NinjaTrader_Jason  
          Working...
          X