Midpoint of a bar

It would be nice if we had a option to put a Dot at the midpoint of a bar as price does like to come back to midpoints

There was a similar request, but with a line instead of a dot. Enjoy.

Thank you for sharing this but is there a way to modify the code if I only want to see the retracement lines on the last five to ten bars instead of all the bars or just the last bar? I’ve watched your tutorials in youtube multiple times but this wasn’t covered and I couldn’t figure out how to do this.