Gap Fill Indicator

Forums ProRealTime English forum ProBuilder support Gap Fill Indicator

Tagged: ,

Viewing 15 posts - 1 through 15 (of 16 total)
  • #202454

    I want to visually highlight a gap until it is filled.

    So far, I came up with the following code (see the attached screenshot for the result of this code).

    What I want to achieve is that the lines that indicate the gap reach until the candle that fully fills this gap (or else continue to go on until the gap is fully filled). How can this be done?

    So far I have hardcoded the length of the line to 10 bars; but that is obviously either too long or too short.

     

    Thank you so much for your help. Greetings!

    #202484

    You need to store gap prices in an array, then check, each bar, if any of them has been filled or not and, when they have, set them to 0 (and maybe shift  all array elements one place, but it’s not mandatory) to skip checking them again.

     

    1 user thanked author for this post.
    #202501

    Dear Roberto,

    Thank you for your reply. However, I could not find anything about arrays in the ProRealTime programming guides. Have you got any advice where I can learn about how to implement the solution you have layed out in your answer?

    #202509

    Searching this forum for ARRAY will return many links.

    A guide can be found here :

    https://www.prorealcode.com/topic/array-variables-availability-in-prorealtime/

     

     

     

    1 user thanked author for this post.
    #202581

    Dear Roberto,

    I searched the whole forum, and I tried many things, but I couldn’t wrap my head around it. The lines created would always point backwards.

    I know it might be much to ask, but could you show me how to formulate your approach into code?

     

    Greetings,

    Nils

    #202586

    It will take some time to code it. I will make it as soon as possible 🙂

     

    1 user thanked author for this post.
    #202660

    Thank you so much Roberto. I’m looking forward to it 🙂

    Greetings Nils

    #203551

    There you go:

    the properties have two settings:

    • GapLineSize is the line length (in bars) to be plotted into the future
    • GapDepth is the size of the minimum GAP (multiplier of the average range).

     

     

     

    3 users thanked author for this post.
    #204723

    Hi,

    I could not add this to my Price panel.

    A new empty panel was added under the Price.

    Please help

    #204725

    How to add an indicator on price: https://www.prorealcode.com/blog/video-tutorials/how-to-add-an-indicator-on-price-prorealtime/

    1 user thanked author for this post.
    #204726

    Not working for me on V12

    I get a new panel on the bottom.

    #204754

    Adding an indicator to the price window works for me both on v11 and on v12. The indicator has to exist in the list first. So when you create it first time around and it isn’t in the list yet, it appears below, you save it, then it’s in the list, and then once it is in the list you can do as the video.

    Did you mean you get a panel below each time, having tried several times, or did you mean you only did it once for creation when it is not in the list yet and can’t do as the video? If even when trying again picking it from the list, it doesn’t work, then there might be a problem specific to your platform, and you would need to send a technical report from your platform to PRT (CTRL+M). It works for me on v12, so can’t reproduce the problem and help further as fellow user.

     

    1 user thanked author for this post.
    #204755

    I have downloaded the GAP-Monitoring-till-Filled.itf from robertogozzi message above dated 11/04/2022 at 6:28 PM.

    I then imported the itf file and it is in the list.

    When I tried to install in the price panel a new panel was created at the bottom.

    I don’t have the problem with other indicators

    #204760

    Ok, there might be a problem here indeed, I started from scratch again, imported it rather than create and copy-paste, but it didn’t change. The only real difference I could think of, is that I had added it as “favorite” (the yellow star next to it) to avoid scrolling down the indicators list to find it. So just in case, I tried without adding it as favorite, and indeed it made a difference, I am now having the same issue too, when not favorite it doesn’t get added to price, but when added as favorite first, it does.

    Good enough for me to highlight it as a v12 bug to Nicolas. In the meantime, you can try adding it as a favorite in case it helps temporarily in your platform too, until they see if they can replicate the issue, and fix it.

     

    1 user thanked author for this post.
    #204761

    Issue is spotted and reported, thanks for letting us know! 😆

Viewing 15 posts - 1 through 15 (of 16 total)

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