OPEN-SOURCE SCRIPT
Thursday High & Friday Low Breakout (Safe)

This TradingView Pine Script indicator is designed to help traders visually track two key situational breakout patterns that occur across the Thursday–Monday trading window. Specifically, it detects:
Whether the high of Thursday has been taken out on Friday, and
Whether the low of Friday has been breached on Monday.
These conditions are based on commonly observed market behaviors where key highs and lows from the previous days often act as liquidity targets or decision points. By identifying these events, traders can better understand the unfolding market structure and anticipate potential follow-through or reversals.
The script stores Thursday's high and Friday's low at the close of each respective day and evaluates the breakout conditions in real-time as new bars are printed. When Friday’s price action exceeds Thursday’s high, an upward-pointing green triangle is plotted above the bar. Conversely, when Monday’s price breaks below Friday’s low, a red downward triangle is plotted below the bar.
Unlike scripts that rely on label.new (which can create compatibility issues on certain platforms or versions), this version uses plotshape() to ensure wide compatibility and reliable visual cues, even on older Pine Script environments. This makes it lightweight, robust, and ideal for traders who want a quick-glance tool without cluttering their charts.
The indicator is best used on 1H, 4H, or daily timeframes to clearly observe the Thursday–Friday–Monday structure. It works well in both trending and consolidating markets as a tool to mark potential liquidity sweeps or break-of-structure setups.
Whether the high of Thursday has been taken out on Friday, and
Whether the low of Friday has been breached on Monday.
These conditions are based on commonly observed market behaviors where key highs and lows from the previous days often act as liquidity targets or decision points. By identifying these events, traders can better understand the unfolding market structure and anticipate potential follow-through or reversals.
The script stores Thursday's high and Friday's low at the close of each respective day and evaluates the breakout conditions in real-time as new bars are printed. When Friday’s price action exceeds Thursday’s high, an upward-pointing green triangle is plotted above the bar. Conversely, when Monday’s price breaks below Friday’s low, a red downward triangle is plotted below the bar.
Unlike scripts that rely on label.new (which can create compatibility issues on certain platforms or versions), this version uses plotshape() to ensure wide compatibility and reliable visual cues, even on older Pine Script environments. This makes it lightweight, robust, and ideal for traders who want a quick-glance tool without cluttering their charts.
The indicator is best used on 1H, 4H, or daily timeframes to clearly observe the Thursday–Friday–Monday structure. It works well in both trending and consolidating markets as a tool to mark potential liquidity sweeps or break-of-structure setups.
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.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
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.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.