OPEN-SOURCE SCRIPT
B A N K $ - Breaks & Sweeps

This indicator automatically maps on Breaks of Structure & Liquidity Sweeps. It works by calculating pivot points based on how many candles are above/below either side of a pivot.
The user can manually set how many candles need to be above/below either side of a pivot if they would prefer to change it.
The indicator will dynamically adjust the lines as the user changes timeframe to allow for seamless analysis.
Features
Explanation
A sweep is determined by whether a candle closes through a pivot point with a body closure or not. If the candle wicks this level but fails to close through it, the line will turn red to indicate a liquidity sweep.
If the following 3 candles go on to close through the break line, this will then update it from a red sweep line to the normal break line again. (sometimes the initial candle that touches a level will not close through it but price will continue to break that level in the next few candles).
The user can manually set how many candles need to be above/below either side of a pivot if they would prefer to change it.
The indicator will dynamically adjust the lines as the user changes timeframe to allow for seamless analysis.
Features
- Break of Structure lines
- Liquidity Sweep lines
- Dealing Range - this allows the user to visualise the current dealing range
Explanation
A sweep is determined by whether a candle closes through a pivot point with a body closure or not. If the candle wicks this level but fails to close through it, the line will turn red to indicate a liquidity sweep.
If the following 3 candles go on to close through the break line, this will then update it from a red sweep line to the normal break line again. (sometimes the initial candle that touches a level will not close through it but price will continue to break that level in the next few candles).
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, penulis skrip ini telah menjadikannya sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Hormat untuk penulisnya! Meskipun anda dapat menggunakannya secara gratis, ingatlah bahwa penerbitan ulang kode tersebut tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi tidak dimaksudkan untuk menjadi, dan bukan merupakan saran keuangan, investasi, perdagangan, atau rekomendasi lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Persyaratan Penggunaan.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, penulis skrip ini telah menjadikannya sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Hormat untuk penulisnya! Meskipun anda dapat menggunakannya secara gratis, ingatlah bahwa penerbitan ulang kode tersebut tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi tidak dimaksudkan untuk menjadi, dan bukan merupakan saran keuangan, investasi, perdagangan, atau rekomendasi lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Persyaratan Penggunaan.