TradingView
Shauryam_or
17 Ogs 2021 pukul 04.58

count pivot high/low 

Nifty 50 IndexNSE

Huraian

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 ..
Komen
axelsoedarsono
thank you!
chaiyookay
How to make it real-time?
Shauryam_or
@chaiyookay, cant because pviot count after number of input bar
sudeepkumar264
How to convert this into counting intraday no’s. Of swing high low
UnknownUnicorn15320316
is repaint?
Shauryam_or
@Bafrali1453, no its not ..but pivot calculate late after 3 or 5 bar ...
WokAshraf
i have question to ask..let say i have 4 indicator which produce 4 buy signal and 4 sell signal..but the signal occurred at different time .can i use concept as above to count and store the value? if buy signal it will become +1..if it sell signal it will be -1..and it will need all the signal to be 1111 before alert happen
Shauryam_or
@WokAshraf, you can use var and store last signal

var first_buy =false

If crossover (close, ema_200)
first_buy:=true
Somethings like that with all buy signal
CodyMaki
thank you for making this seems pretty great cheers
drgentleman1
Thank you for interesting and excellent script.so,how can ı add to alarm counted pivots in this indicator?
Lebih