Preloadbars
Forums › ProRealTime English forum › ProBuilder support › Preloadbars
- This topic has 8 replies, 3 voices, and was last updated 1 day ago by
DeathMetal.
-
-
12/08/2025 at 5:30 PM #254360
Hello,
My trading system is stopped by insufficient amount of historical data loaded, which i don’t get, because 10000 bars is plenty for my purposes on DOW 1 minute.
PRT is provided by IG, Free version.
Thanks in advance.
12/08/2025 at 7:06 PM #254361I’ve had this loads over the years, very frustrating to find the exact reason why sometimes / most times.
I know you have 10000 preloadbars, but try as below to see if it helps?
1234567Once STARTBAR = 100 // VALUE EQUAL to HIGHEST LOOKBACK PERIOD.If Barindex > STARTBAR Then// ALL your Algo code hereENDIF // as last line of your code so that ALL code is within the 'If ENDIF wrapper' of the STARTBAR valueLet us know how you get on?
12/08/2025 at 8:32 PM #254363It doesn’t work with multitimeframes in the code, when I delete this, then it is working. (i.e. no errors)
12/08/2025 at 8:44 PM #254364Might be due to lookbacks / periods of your higher TF’s (slower) needing more than 10000 bars when running on lower TF’s (faster) Chart Timeframe?
Reduce lookbacks on higher TF’s just to see if it will run (don’t worry about performance at this stage) without erroring out.
Let us know how you get on?
12/08/2025 at 8:59 PM #254365i think, you mean, reduce the biggest timeframe into smaller, that works, however it gives shitty results
12/08/2025 at 9:22 PM #254367An example, if your higher TF is 4 hour and has a lookback of 50 then that needs 12,000 bars at a 1 min TF.
Max allowed / preload is 10,000 so you would need to raise the 1 min TF.
4 hour lookback of 50 is 6,000 at 2 min TF, less than max of 10,000, so H4 and M2 might work?
1 user thanked author for this post.
12/08/2025 at 9:26 PM #254368Raise up the timeframe of 1 minute is a deadend street.
So I use a double smooth stochastic (bressert) 240 minutes. So I need minimum 10x240min= 2400 min lookback. Or is that not right?
12/09/2025 at 9:34 AM #254375hi. Maybe you could test with lower periods for stochastic. I think you need 12k bars as Grahal says.
1 user thanked author for this post.
12/09/2025 at 4:40 PM #254396I ll give it a try, Thank you both
-
AuthorPosts
