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 00nevest, Today, 02:27 PM
          1 response
          8 views
          0 likes
          Last Post 00nevest  
          Started by futtrader, 04-21-2024, 01:50 AM
          4 responses
          41 views
          0 likes
          Last Post futtrader  
          Started by Option Whisperer, Today, 09:55 AM
          1 response
          12 views
          0 likes
          Last Post bltdavid  
          Started by port119, Today, 02:43 PM
          0 responses
          8 views
          0 likes
          Last Post port119
          by port119
           
          Started by Philippe56140, Today, 02:35 PM
          0 responses
          7 views
          0 likes
          Last Post Philippe56140  
          Working...
          X