How to avoid drawing on the current bar ?

Forums ProRealTime English forum ProBuilder support How to avoid drawing on the current bar ?

Viewing 5 posts - 1 through 5 (of 5 total)
  • #195024

    Hi All,

    Does someone know the trick which avoids drawing on the last bar ? It should be very easy, but I can’t find anything (also tried stuff around IsLastBarUpdate).

    You see me drawing minutes above the bars. But the current (rightmost) bar repeats the minute of the previous bar (see the “08”). And, if I would be able to add an extra minute/count to that current bar, it would also be fine (even better; I want to show it correctly – or show nothing if it’s wrong).

    Thanks !
    Peter

    #195052

    Please post the code so I can get a better picture of what you want to be plotted or not.

    #195114

    During the posting of this, I suddenly saw the light (??). This is in a static environment because markets are closed at this moment. So must check later today on a live market whether this works out for real (it could matter).

     

     

    #195118

    Replace line 24 with:

    #195124

    Yes, thanks. I had that version too by means of a similar If as that I already use, around the DrawText. That (and yours) omits the drawing on the current bar. This is great for certain applications.

    The one I showed indeed now works too and that is drawing the correct minute on the current bar, also when the market is live.

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

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