This script uses the Traditional Pivot Points but includes the price levels and the 50% line between levels. We added the ability to change the line color of the major levels and the minor levels independently, for better clarity. Added alerts - used code from QuantNomad.
Pivot Points description from TradingView default indicator: Pivot Point analysis is a technique of determining key levels that price may react to. Pivot points tend to function as support or resistance and can be turning points. This technique is commonly used by day traders, though the concepts are valid on various timeframes. There are several methods of identifying the exact points. Common types of pivot points are Traditional, Fibonacci, Woodie, Classic, Camarilla and DM and each type has its own calculation method.
Most use a variation of significant prices such as established highs, lows, opening and closing prices and then apply a calculation to determine these points. They all calculate additional support and resistance levels alongside the pivot points. They can be used to determine when to enter or exit trades or to determine the range of a market. Conservative traders look for additional confirmation before entering a trade. Whether pivot points are used alone or in combination with other techniques, they are a useful tool in a technical trader's toolbox.