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 SalmaTrader, 07-07-2026, 10:26 PM
      0 responses
      29 views
      0 likes
      Last Post SalmaTrader  
      Started by CarlTrading, 07-05-2026, 01:16 PM
      0 responses
      17 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 06-17-2026, 10:32 AM
      0 responses
      9 views
      0 likes
      Last Post CaptainJack  
      Started by kinfxhk, 06-17-2026, 04:15 AM
      0 responses
      15 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 06-17-2026, 04:06 AM
      0 responses
      18 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X