Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Slow backtest

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

    Slow backtest

    I have noticed that my strategy runs quickly in the strategy analyzer for about the first 12-18 months and then moves slowly. A 6 year back test takes about 25 minutes but the first year finishes in about 60 seconds so one would assume a 6 minute back test. I have gone through my code to see if I am storing extra data or collections etc but everything is pretty clean. I am suspecting the performance objects since the strategy places a lot of limits and then cancels them. Could this be it? Any other suggestions?

    #2
    problem solved

    I found that the issue was with drawing that i was doing on the chart. I have cancelled that and I have gotten the time down from 25 minutes to 1-2 minutes

    Comment


      #3
      Thanks for letting us know bfis108137, correct that would be something to keep in mind for performance, issued prints and drawing items - some users enable this only in 'debug' for example in their codes.

      Comment


        #4
        Hello

        I am facing the same issue (slow backtesting).

        The strategy I have built is using indcators which can plot data and feed data series used by the strategy. Does it mean that if i create dedicated indicator versions with no plot it would then speed up the backtest.

        Thanks in adavance

        Lionel

        Comment


          #5
          Lionel, I have replied to your other posting on the topic, for the plots alone > I would not expect this impact.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          88 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          48 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          31 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          34 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          69 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X