Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 Rapine Heihei, 04-23-2024, 07:51 PM
          2 responses
          30 views
          0 likes
          Last Post Max238
          by Max238
           
          Started by Shansen, 08-30-2019, 10:18 PM
          24 responses
          943 views
          0 likes
          Last Post spwizard  
          Started by Max238, Today, 01:28 AM
          0 responses
          9 views
          0 likes
          Last Post Max238
          by Max238
           
          Started by rocketman7, Today, 01:00 AM
          0 responses
          7 views
          0 likes
          Last Post rocketman7  
          Started by wzgy0920, 04-20-2024, 06:09 PM
          2 responses
          28 views
          0 likes
          Last Post wzgy0920  
          Working...
          X