Display less data than loaded

Forums ProRealTime English forum ProBuilder support Display less data than loaded

Viewing 11 posts - 1 through 11 (of 11 total)
  • #155377

    Hello,

    For an indicator (made with probuilder) I need to load  about 20000 bars. However I would like to displaw just the 10 last ones for example.

    Is there any way to do so ?

    thank you.

    #155394
    #155404

    Yes … use below in your code … https://www.prorealcode.com/documentation/calculateonlastbars/

    Haha, that could be the idea, if the question had been the other way around.

    But I suppose I read the question too literally and your answer will be spot-on.

    Might I be right after all, then the answer lies in that command which pre-loads 20000 – 10 = 19990 bars. 🙂
    Of course I don’t know the command from the top of my head … 🙁
    Edit : Should be the PreloadBars command.

    #155417

    Max Preload bars is 10k bars in v10.3.

    v11 may be more or it may be the same .. maybe PRT Support can tell us … if they read these posts ever?

    #155419

    Thank you.

    I have PRT v11.

    Regarding your answers:

    • Calculateonlastbars = I think not appropriate since I want to limit the displayed data in my case.
    • Preloadbars= seems to exist only for automatic trading. Not for Probuilder

    Just for info : on timeframe 1 minute, the indicator worstcase looks the value of Senkou Span B (52 period) of the time frame 4 hours so at least 52*60*4 so = 12480 units/bars at least seem needed. Attached you will see the indicator (show more or less the trend of ichimoku, 1st line is 1 min, 2nd 5 min, 3rd 15 min 4th 1hour and 5th line is 4 hours).

    I would like to display only the 10 last minutes for example. Not the 20 000 last units.

    Thank you.

     

    #155423

    I would like to display only the 10 last minutes for example. Not the 20 000 last units.

    Wouldn’t that be the case of, say, “zooming” until you see the last 10 minutes only ?
    Notice that V11.1 will remember your zoom-state, so at a restart of the platform it will remain exactly as how you left it (if you let the chart be on-screen).

    1 user thanked author for this post.
    #155427

    OK so if V11.1 will remember my zoom-state that’s perfect.

    Problem resolved then. Thank you.

    #155432

    I would like to display only the 10 last minutes for example. Not the 20 000 last units.

    Think I’m missing the point (due to not reading / understnading), but why don’t you just select 10 units x 1 min (instead of 20k units) if you only want to see  the last 10 minutes?

    #155437

    GraHal, because then Jerome’s indicator won’t have sufficient data to “work” ?

    1 user thanked author for this post.
    #155439

    PeterSt : correct

    #156190

    If you are using TIMEFRAME instructions, then it will get the same amount of bars in any of the timeframe of the code.

Viewing 11 posts - 1 through 11 (of 11 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login