This Pivot points is calculated on the current day. Pivot points simply took the high, low, and closing price from the previous period and divided by 3 to find the pivot. From this pivot, traders would then base their calculations for three support, and three resistance levels. The calculation for the most basic flavor of pivot points, known as ‘floor-trader pivots’, along with their support and resistance levels.
You can change long to short in the Input Settings WARNING: - For purpose educate only - This script to change bars colors.