OPEN-SOURCE SCRIPT
CRT [odnac]

This indicator is an algorithm that captures long and short entry signals by utilizing higher timeframe (HTF) liquidity sweeps and price breakout patterns.
Higher Timeframe (HTF) Auto/Manual Mapping: Automatically determines the higher timeframe based on the chart period or allows manual configuration.
Auto Mapping Guide: 1m/3m -> 15m / 5m/10m -> 60m / 15m/30m -> 240m (4H) / 1h–3h -> Daily (D) / 4h–12h -> Weekly (W) / Daily -> Monthly (M) / Weekly -> Yearly (12M)
Liquidity Sweep Detection: Captures the moment when the current price temporarily breaches (sweeps) the higher timeframe reference line (high/low), opening up reversal possibilities.
A, B, C Structure Definition:
A (Reference Point): The previous high or low reference line of the higher timeframe (HTF).
B (Sweep Point): The zone where the price temporarily breaks (sweeps) the A reference line and forms a new extreme.
C (Breakout Reference Line): The highest high (for long) or lowest low (for short) within the range from the sweep occurrence point back to the A reference point.
C Range and Breakout Confirmation: Sets the post-sweep high/low as the reference (C) and triggers the final signal when the price breaks out of this range (Crossover/Crossunder).
HTF Bar Validity Period Settings: Allows configuring the number of allowed higher timeframe bars after a sweep occurs.
Filter Functions: Applies session time settings and weekend filters to block signals during unnecessary volatility periods.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.