Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error Code CS0029

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

    Error Code CS0029

    I'm trying to add a Public IntSeries, and have used the following script:

    privateint wmaUpDnNt = 0;

    [Browsable(false)]
    [XmlIgnore()]
    public IntSeries WmaUpDnNt
    {
    get { return wmaUpDnNt; }
    }

    When I compile the script I get Error: CS0029-Cannot implicity convert type "int" to "NinjaTrader.Data.IntSeries". I've used this without error in other Indicators and don't understand why this isn't working in this Indicator. Can someone offer some help, thread or solution? Thanks!

    #2
    Hi DenMan,

    I'm not sure why this would compile in other scripts. To resolve you can make wmaUpDnNt an IntSeries and instantiate it in Initialize()

    private IntSeries wmaUpDnNt;

    wmaUpDnNt = new IntSeries (this);
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      I forgot the "private IntSeries wmaUpDnNt;" line in Variables. Sorry for the bother. Thanks for your quick and accurate response!!!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      46 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      28 views
      0 likes
      Last Post PaulMohn  
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      163 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      98 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      158 views
      2 likes
      Last Post CaptainJack  
      Working...
      X