OPEN-SOURCE SCRIPT
Candle Range Theory (CRT) indicator

📌 Indicator Name: Candle Range Theory (CRT) indicator
This indicator detects potential bullish and bearish reversal setups based on specific candlestick price action behavior. It is designed to highlight moments when the market may be rejecting extremes and preparing to reverse direction — but only after confirmation with the closing price.
🔍 How It Works:
Bullish Setup (Long Signal):
The previous candle is bearish (closes lower than it opens).
The current candle makes a lower low than the previous one.
The current candle closes above the previous candle’s close.
Bearish Setup (Short Signal):
The previous candle is bullish (closes higher than it opens).
The current candle makes a higher high than the previous one.
The current candle closes below the previous candle’s close.
Signals are only triggered after the bar is fully closed, to avoid premature entries.
🔔 The script includes alert conditions for both long and short setups so you can receive notifications instantly.
🎥 Inspiration:
The idea for this indicator came from the excellent educational content presented in this video:
"How to Read Candlesticks Like a Pro"
We highly recommend watching it to better understand the price action principles behind this signal.
This indicator detects potential bullish and bearish reversal setups based on specific candlestick price action behavior. It is designed to highlight moments when the market may be rejecting extremes and preparing to reverse direction — but only after confirmation with the closing price.
🔍 How It Works:
Bullish Setup (Long Signal):
The previous candle is bearish (closes lower than it opens).
The current candle makes a lower low than the previous one.
The current candle closes above the previous candle’s close.
Bearish Setup (Short Signal):
The previous candle is bullish (closes higher than it opens).
The current candle makes a higher high than the previous one.
The current candle closes below the previous candle’s close.
Signals are only triggered after the bar is fully closed, to avoid premature entries.
🔔 The script includes alert conditions for both long and short setups so you can receive notifications instantly.
🎥 Inspiration:
The idea for this indicator came from the excellent educational content presented in this video:
"How to Read Candlesticks Like a Pro"
We highly recommend watching it to better understand the price action principles behind this signal.
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.