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.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.