RafaelZioni

Peak detector

This indicator aims to detect the peaks of high and lows
in volatile assets like BTC and others , trend normaly start or end at those peaks . it simple logic that based on the fact that we reach price satuartion (either end of seller or end of buyers)
so how it logic work?
I takew linear regression channel (high low) then we expect the peaks either the high or the low will be at some extreme
so simply we put percentage either above or bellow and by this way we can try to detect those peaks
you can control the linear channel by length or deviation
and you can try to find best estimation of peak by % high or low
alert when peak is found and signal included
this is just idea, can be make better if we add more indicators to it :)
for each time frame try to adjust the % for best fit
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.

Disclaimer

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?