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 judysamnt7, 03-13-2023, 09:11 AM
          4 responses
          59 views
          0 likes
          Last Post DynamicTest  
          Started by ScottWalsh, Today, 06:52 PM
          4 responses
          36 views
          0 likes
          Last Post ScottWalsh  
          Started by olisav57, Today, 07:39 PM
          0 responses
          7 views
          0 likes
          Last Post olisav57  
          Started by trilliantrader, Today, 03:01 PM
          2 responses
          21 views
          0 likes
          Last Post helpwanted  
          Started by cre8able, Today, 07:24 PM
          0 responses
          10 views
          0 likes
          Last Post cre8able  
          Working...
          X