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 gbourque, Today, 06:39 AM
          0 responses
          2 views
          0 likes
          Last Post gbourque  
          Started by cmtjoancolmenero, Yesterday, 03:58 PM
          1 response
          17 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by benmarkal, Yesterday, 12:52 PM
          3 responses
          23 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by helpwanted, Today, 03:06 AM
          1 response
          20 views
          0 likes
          Last Post sarafuenonly123  
          Started by Brevo, Today, 01:45 AM
          0 responses
          12 views
          0 likes
          Last Post Brevo
          by Brevo
           
          Working...
          X