Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Can't seem to select variables

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

    Can't seem to select variables

    Not sure what is going wrong with a Slope indicator I developed. When I compile it I get no errors but when I plot it for some reason I do not see the option to select different MA types that I have included in the indicator.

    I don't what is wrong, can someone help please?
    Attached Files

    #2
    pandayav,

    You did not set up the variable as a user defined input for the strategy. Unfortunately, using object types as user defined input isn't supported. You could possibly use an integer to identify which type of moving average you want, i.e. assign 1 to EMA, 2 to SMA, etc. This would be supported.

    Please let me know if I may assist further.
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by pandyav View Post
      Not sure what is going wrong with a Slope indicator I developed. When I compile it I get no errors but when I plot it for some reason I do not see the option to select different MA types that I have included in the indicator.

      I don't what is wrong, can someone help please?
      You need to set up the MAType as a public variable, before you can access it publicly.

      Code:
      [Description("")]
      [GridCategory("Parameters")]
      public MAType MovingAverageType
      {
            get { return MAType1; }
            set { MAType1 = value; }
      }

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      577 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      334 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      553 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      551 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X