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.
I’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?
Once STARTBAR = 100 // VALUE EQUAL to HIGHEST LOOKBACK PERIOD.
If Barindex > STARTBAR Then
// ALL your Algo code here
ENDIF // as last line of your code so that ALL code is within the 'If ENDIF wrapper' of the STARTBAR value
Let us know how you get on?
It doesn’t work with multitimeframes in the code, when I delete this, then it is working. (i.e. no errors)
Might 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?
i think, you mean, reduce the biggest timeframe into smaller, that works, however it gives shitty results
An 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?
Raise 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?
hi. Maybe you could test with lower periods for stochastic. I think you need 12k bars as Grahal says.
I ll give it a try, Thank you both
tried everything to get it working, but it didn’t workout. In my search I did find something else, namely if you make the parameters 4x as long in e.g. a stochastic , you get a much smoother indicator (e.g. 4×60 min timeframe is the same as a 240 min timeframe but much smoother).