Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT7 crashing on SwingLow call

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

    NT7 crashing on SwingLow call

    hi, I have a bit of a major problem. NT 7 is crashing with the following error when I try to use a SwingLow function.

    See pic

    Here is the code that I am calling from an external file that I include in my strategy
    publicclass MFTradeClass : Strategy
    {
    publicbool MFIndicatorSwing (IDataSeries dataSeries, bool direction, int strength)
    {
    bool retval = false;

    if (Swing(dataSeries, strength).SwingLowBar(1, 1, 4) != 0)
    {
    retval =
    true; // ok, we found a swing point
    }

    return (retval);
    }


    }
    }

    Then I call this from onbarupdate with:

    // setup the new MFTradeClass and start using the methods and things in there.
    MFTradeClass mytrade = new MFTradeClass();

    // check for a CCI swinglow last bar
    if (mytrade.MFIndicatorSwing (CCI(cCIPeriod), true, 1))
    {
    Print(
    "Found a CCI SwingLow on bar: ");
    }

    What is going wrong?
    Attached Files

    #2
    Hi DaFish, thanks for the post - could you please email me via Help > Mail to Support so I could review your trace / logs for this assertion seen?

    Thanks,

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    650 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    370 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    109 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    574 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    577 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X