this is the default script on trading view for pivot points
//@version=4 study("Pivot Points High Low", shorttitle="Pivots HL", overlay=tr