insufficient amount of historical data loaded

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #254360 quote
    DeathMetal
    Participant
    New

    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.

    #254361 quote
    GraHal
    Participant
    Master
    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?
    #254363 quote
    DeathMetal
    Participant
    New
    It doesn’t work with multitimeframes in the code, when I delete this, then it is working. (i.e. no errors)
    #254364 quote
    GraHal
    Participant
    Master
    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?
    #254365 quote
    DeathMetal
    Participant
    New
    i think, you mean, reduce the biggest timeframe into smaller, that works, however it gives shitty results
    #254367 quote
    GraHal
    Participant
    Master
    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?
    DeathMetal thanked this post
    #254368 quote
    DeathMetal
    Participant
    New
    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?
    #254375 quote
    Iván González
    Moderator
    Master
    hi. Maybe you could test with lower periods for stochastic. I think you need 12k bars as Grahal says.
    DeathMetal thanked this post
    #254396 quote
    DeathMetal
    Participant
    New
    I ll give it a try, Thank you both
    #254542 quote
    DeathMetal
    Participant
    New
    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).
    GraHal thanked this post
Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.

insufficient amount of historical data loaded


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
DeathMetal @deathmetal Participant
Summary

This topic contains 9 replies,
has 3 voices, and was last updated by DeathMetal
1 month, 3 weeks ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 12/08/2025
Status: Active
Attachments: 1 files
Logo Logo
Loading...