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.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.