I worked with pivot script which I believe was created by HPotter but somehow, I can't look it up.
This script fixes one issue I have with several pivot points script I had honour to see. When the new day starts, sometimes, there is a line connecting old pivot points and new ones. I managed to remove it.
Compared to the script I worked with, I converted the code from v.1 to v.4, added middle pivots and added previous day's close, high and low which are superior levels compared to any pivot calculation.
This script will show only on the 1m, 5m, 15m and 30m charts, so you don't need to turn it off when you check higher timeframe for macroanalysis.