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 CaptainJack, 05-29-2026, 05:09 AM
          0 responses
          213 views
          0 likes
          Last Post CaptainJack  
          Started by CaptainJack, 05-29-2026, 12:02 AM
          0 responses
          126 views
          0 likes
          Last Post CaptainJack  
          Started by charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          145 views
          0 likes
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          229 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          190 views
          0 likes
          Last Post CarlTrading  
          Working...
          X