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 ...to code this idea one of good friend fikira helped me ..
in v2 version i hope will able to count intraday piovt high and low ..