Rolling HH with Future Projection

Plus a deferred line which shifts the first one by factor Y
Draws two lines.
The 1st HHline shows the Highest High line of last X bars. Plus a prolongation for the next X bars.
This prolongaton pretends that there will be no more higher highs in the future. What off course will often, but not always be the case.
2nd line is a deferred line which shifts the first one by factor Y
How is it working
Collecting the HHs of the last X bars, storing them in an arryay.
Use-case
Trade setup 'return to the mean'. Factor < 1.0, so derived line is below HHline. When derived line is thouched/crossed, then there is a correction by factor Y below the HH of the last X bars.
In case the derived line isn't hit yet, how much time and space is left to accomplish that? The prolongation gives an estimation.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Per un accesso rapido a un grafico, aggiungi questo script ai tuoi preferiti: per saperne di più clicca qui.
Declinazione di responsabilità
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Per un accesso rapido a un grafico, aggiungi questo script ai tuoi preferiti: per saperne di più clicca qui.