Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Calling TSSuperTrend

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

    Calling TSSuperTrend

    Hello Support,

    I am adding TSSuperTrend for my indicator Exit Strategies in the following manner:

    if (TSSuperTrend(3,TradingStudies.NinjaScript.Utility .MovingAverageType.HMA,1.99,8,TradingStudies.Ninja Script.Utility.SuperTrendMode.ATR).DownTrend.Conta insValue(0) && !ExitLongDone)
    ExitLongProcess();
    else
    if
    TSSuperTrend(3,TradingStudies.NinjaScript.Utility. MovingAverageType.HMA,1.99,8,TradingStudies.NinjaS cript.Utility.SuperTrendMode.ATR).UpTrend.Contains Value(0) && !ExitShortDone)
    ExitShortProcess();

    Adding this, when the indicator is called, Window Task Manager reported a quickly ascending memory usage, till about 1.6 GB when it ninja get exception and need to shutdown.

    I have used similar construct to add other indicators as exit strategies without any issue, normally just adding a few MB to memory usage.
    Is there anything wrong with TSSuperTrend?
    If one construct strategy using the Wizard and add the TSSuperTrend, it would also results in "out of memory" when executed.

    Would appreciate your help on this issue.

    Thanks.

    Regards.
    Edward K

    #2
    Edward, could you please clarify: when does the memory usage spike? Is it when you add the TSSuperTrend indicator to a chart? Or when adding it to a strategy (during a backtest?)?
    AustinNinjaTrader Customer Service

    Comment


      #3
      Calling TSSuperTrend

      Hello Austin,

      Adding TSSuperTrend on a chart does not cause the issue.
      But adding my indicator (that calls TSSuperTrend) on a chart cause the issue.
      Running strategy that call my indicator that call TSS cause the issue.
      Months ago I have used Strategy wizard to use TSSuperTrend resulting in crash, but not confirmed if it is due to the same issue.
      If my indicator uses the same construct but call other indicator, it has no such issue.

      Thanks.

      Edward K.

      Comment


        #4
        Edward, since TSSuperTrend is a 3rd party indicator, I would recommend contacting the author of it for assistance. It sounds like there could be some underlying problems in the code.
        AustinNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

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