Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Assertion Failed Error

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

    Assertion Failed Error

    Hi,

    I am in the process of debugging a relatively simple indicator. During compilation of some new additions to the code, NT7 crashed with an Assertion error.

    I ran the indicator through the VS debugger and the call stack name that came up was

    > ec2402e6bec741a0bd0334bb93bff218.dll!NinjaTrader.I ndicator.MovingAverage._TMA(int Period, int CurrentBar, NinjaTrader.Data.IDataSeries Volume, NinjaTrader.Data.DataSeries Input, NinjaTrader.Data.DataSeries average) Line 795 + 0x35 bytes C#

    The offending code was:
    publicstaticdouble _TMA(int Period, int CurrentBar, IDataSeries Volume, DataSeries Input, DataSeries average)
    {
    PB_TrailDown pb =
    new PB_TrailDown();
    double avg=0;
    avg = pb.TMA(Input, Period)[0];
    return avg;
    }

    The issue is the line
    avg = pb.TMA(Input, Period)[0];

    I should point out that I am trying to call an instance method from a static method. The static method sits inside a different class than the indicator class. I have tried to do this via object reference but that completely crashes NT.

    Any idea why the assertion error? Please advise. Thank you.

    #2
    Zeos6, would you mind sending us a simplified example to support so we could test and review the assert with our developers?

    Thanks

    Comment


      #3
      Hi Bertrand,

      Where, and to whom, do I send the code?

      Comment


        #4
        Zeos6, please just contact us over Help >> Mail to Support with a zip file attached and then reference this thread in your comment. Thanks in advance.

        Comment


          #5
          Thanks Bertrand. I have done as suggested and sent the file in to Support.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          558 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          324 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
          545 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          547 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X