Draw vertical line on each Minute with DrawOnLastBarOnly = true

Forums ProRealTime English forum ProBuilder support Draw vertical line on each Minute with DrawOnLastBarOnly = true

Viewing 3 posts - 1 through 3 (of 3 total)
  • #216911

    This is a question which I only have because it intrigues me. Without a solution I will survive.

    Suppose I have a TimeFrame of 1 minute. I need DefParam DrawOnLastBar = true for various reasons. Now, what would be a sample code which draws a line on each minute mark which line will stay throughout the progress of the chart ?

    I am as far as having the vertical line persistent for the last minute, that line disappearing if the new minute begins and the new line is drawn. I won’t even show the hoopla-code I have for it, because what I am doing is all stupid tweaking only to get that.

    I must be missing the point completely because something simple like this should be … well, simple.

    Thanks !

     

    #216943

    You can use arrays. This indicator will always plot the last 10 vertical lines, each new bar:

     

     

    1 user thanked author for this post.
    #216952

    Thanks a lot, Roberto. Works beautifully.

    Although I got the hang now, I would still advise PRT to make something for this so people would understand intuitively.  It could be as easy as

     

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

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