Hello, I am trying to backtest a private strategy while changing a parameter to a range of values on a range of timeframes. Once it tests a configuration (e.g. timeframe 5 with parameter 10) it saves it and at the and it finds the one that's the most profitable. In total it will be testing around 100 timeframes and 60 parameter configurations so 6000 combinations. I'm having issues with "Calculation timed out. Remove the indicator and reapply it to the chart" errors and account bans.
This is the code I'm using:
(a lot of the parts I deemed irrelevant were removed)
So I'm asking for help with solving the aforementioned "Calculation timed out" issue and prevent account bans (they happen after testing around 4000 combinations; there aren't any ratelimits or warnings before the ban).
Hello, I am trying to backtest a private strategy while changing a parameter to a range of values on a range of timeframes. Once it tests a configuration (e.g. timeframe 5 with parameter 10) it saves it and at the and it finds the one that's the most profitable. In total it will be testing around 100 timeframes and 60 parameter configurations so 6000 combinations. I'm having issues with "Calculation timed out. Remove the indicator and reapply it to the chart" errors and account bans.
This is the code I'm using: (a lot of the parts I deemed irrelevant were removed)
So I'm asking for help with solving the aforementioned "Calculation timed out" issue and prevent account bans (they happen after testing around 4000 combinations; there aren't any ratelimits or warnings before the ban).