Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Backtest optimization performance issues

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

    Backtest optimization performance issues

    Hello Ninja support,

    I came across the a weird effect:
    When I run the optimizer with just one configuration, the simulation runs much faster (twice the speed), as when I run the same configuration several times (e.g. by optimizing on a bogus parameter).
    This is especially evident when I'm running more configurations than cores.

    I'm running of a 4-core i5 with 8GB RAM.

    So:
    • Any idea why this happens?
    • Is there some shared resource the simulation threads are trying to use simultaneously?
    • Can I limit the number of worker threads spawned by the simulator?


    Thanks,
    Boaz

    #2
    Hello Boaz,

    Thank you for your post.

    NinjaTrader is multi-thread but not multi-core for processing. More parameters to optimize means you could see a longer time to complete the optimization regardless of your hardware.

    There is no method to reduce the number of working threads and it is possible that with multi-threading that one thread can be shared for multiple processes.

    For information on multi-threading in NinjaScript please visit the following link: http://www.ninjatrader.com/support/h..._threading.htm

    Please let me know if you have any questions.

    Comment


      #3
      Thank you Patrick,

      When I optimize on say, 4 parameter values, I see that all of my cores are being utilized.
      Doesn't this mean NT spawned 4 threads?
      In either case, how many thread does NT spawn?

      Thanks,
      Boaz

      Comment


        #4
        Hello Boaz,

        Thank you for your response.

        NinjaTrader can use Multi-Threading to take advantage of multiple Cores, but this does not mean NinjaTrader is truly Multi-Core. We are looking to improve this in the next major release of NinjaTrader.
        There is no set limit on the number of threads that NinjaTrader uses. Please review the information at the following link: http://www.ninjatrader.com/support/h..._threading.htm

        Comment


          #5
          OK, thanks Patrick.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by aussugardefender, Today, 01:07 AM
          0 responses
          3 views
          0 likes
          Last Post aussugardefender  
          Started by pvincent, 06-23-2022, 12:53 PM
          14 responses
          238 views
          0 likes
          Last Post Nyman
          by Nyman
           
          Started by TraderG23, 12-08-2023, 07:56 AM
          9 responses
          384 views
          1 like
          Last Post Gavini
          by Gavini
           
          Started by oviejo, Today, 12:28 AM
          0 responses
          4 views
          0 likes
          Last Post oviejo
          by oviejo
           
          Started by pechtri, 06-22-2023, 02:31 AM
          10 responses
          125 views
          0 likes
          Last Post Leeroy_Jenkins  
          Working...
          X