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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      134 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      75 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      119 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      114 views
      1 like
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      92 views
      0 likes
      Last Post CarlTrading  
      Working...
      X