Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Stripping indicator of plotting for optimal performance

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

    Stripping indicator of plotting for optimal performance

    Hey guys/gals

    I'm running an indicator called TrendBars2. It's pretty chart heavy, and it's a resource hog during backtests. I tried to replace the Plots in the indicator with DataSeries but can't get it to work the same.

    Could anyone help me make this indicator as efficient as possible for backtesting. I don't need to see any values from it all, I can load the orginal if I need to see stuff, I just need backtest performance.

    It's a pretty simple indicator, would they absolute fastest way be to strip out the calculations and just integrate them into my strat code?

    I've attached the indicator, help would be greatly, greatly appreciated,

    Cheers!
    Attached Files

    #2
    Hello Wanyewright33,

    Thank you for your post.

    I would recommend implementing this in your Strategy. This would allow the script to runs its own calculations without having to create another instance of the TrendBars2, which will take up a small portion of RAM.

    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Ok great, if you say there will be some benefit then I'll code it up.

      Thanks!

      Comment


        #4
        Is there any way I can terminate an optimization mid run and have it proceed to the next combination to be tested, ideally in OnStartUp()?

        Comment


          #5
          Wanyewright33,

          This would not be possible has the Strategy Analyzer is handled internally by the application and would not be accessible
          Cal H.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          596 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          343 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          103 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          556 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          554 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X