count pivot high/low

this script count pivot higher high and pivot lower low ...its useful understanding swing of market bull pressure and bear pressure ..
when price make swing high it count +1 ..this script can help in price action manual trading understading high and low also newbie pinescript coder to learn counter ..i learn these thing from al brook price action trading books .

to make this script i took pivot high and low inbuild script from Tradingview code this idea one of good friend @fikira helped me ..

in v2 version i hope will able to count intraday piovt high and low ..
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.


The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?