Indicator · Pine Script v6 · On the chart

Institutional CRT Framework - Time-Anchored Edition

by alboogycOdR

This indicator identifies institutional Candle Range Theory (CRT) patterns directly on the main price chart.

View on GitHub

GitHub stars6on the repository
Pine versionv6current
Lines of code667
Settings40inputs
LicenceNone stated
Last update7 months ago16 Mar 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

Institutional CRT Framework - Time-Anchored Edition detects two-candle rejection patterns, three-candle classic setups, inside bars, and outside bars. Users can enable time-anchored 4-hour CRT schedules, session filters (London, New York, Asia), and premium/discount array filters to refine signal detection. Custom visual themes, lookback limitations, and webhook JSON alerts are built in to facilitate real-time monitoring across various market setups without repainting historic signals.

Details

Published by

alboogycOdR on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Candlestick patterns, SMC / ICT / price action, Sessions & time

Markets

Any symbol

Timeframes

M15-H1, H4 and above

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Show 2-Candle (Rejection)booltrueshow_2_candle
Show 3-Candle (Classic)booltrueshow_3_candle
Show Inside Bar (Consolidation)booltrueshow_inside_bar
Show Outside Bar (Seek & Destroy)booltrueshow_outside_bar
Enable Time-Anchored 4H CRTboolfalseuse_time_anchored_4h
01:00/02:00 AM Anchorbooltrueanchor_01_enabled
05:00/06:00 AM Anchorbooltrueanchor_05_enabled
09:00 AM Anchorbooltrueanchor_09_enabled
Broker 4H SchedulestringStandardbroker_4h_schedule
Use legacy time filterboolfalseuse_time_filter
Session to scanstringLondonsession_to_scan
Use Premium/Discount filterboolfalseuse_pd_array_filter
Show all 40 settings
SettingTypeDefaultVariable
PD lookback (bars)int100pd_array_lookback
PD tolerance (%) - extra paddingfloat0.0pd_tolerance_pct
Max history (days)int5history_days_limit
Max instances per pattern typeint200max_instances_each
ThemestringDarki_theme
2C Bull Boxcolorcolor.new(color.green, 0)col_rejection_bull
2C Bear Boxcolorcolor.new(color.red, 0)col_rejection_bear
3C Boxcolorcolor.new(color.orange, 80)col_3c_box
Inside Bars Fillcolorcolor.new(color.blue, 85)col_inside_fill
Outside Boxcolorcolor.new(color.purple, 80)col_outside_box
Label Text Colorcolorcolor.whitelabel_text_color
Enable alerts (master)booltrueenable_alerts
Alerts on 2-Candlebooltruealert_on_2c
Alerts on 3-Candlebooltruealert_on_3c
Alerts on Inside Barbooltruealert_on_inside
Alerts on Outside Barbooltruealert_on_outside
Webhook URLstringwebhook_url_input
Custom alert JSONstring{"ticker":"{{ticker}}","pattern":"{{pattern}}","side":"{{sidcustom_alert_json
Scanner Symbol 1symbolsym1
Scanner Symbol 2symbolsym2
Scanner Symbol 3symbolsym3
Scanner Symbol 4symbolsym4
Scanner Symbol 5symbolsym5
Scanner Symbol 6symbolsym6
Scanner Symbol 7symbolsym7
Scanner Symbol 8symbolsym8
Scanner Symbol 9symbolsym9
Scanner Symbol 10symbolsym10
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

TheStrat Suite

by 345-strategies
5 stars

TheStrat Suite is a multi-timeframe price action indicator implementing Rob Smith's TheStrat methodology. It calculates bar classifications for inside bars, hammers, shooters, failed 2s and outside bars across configurable timeframes. The indicator detects sig

Indicator v6 SMC / ICT / price actionCandlestick patterns Repaints
Updated 2 days ago · MPL-2.0 GitHub repository of TheStrat Suite
2 stars

This indicator detects liquidity sweeps during the Asian session and identifies reversal opportunities in the New York session. It tracks the high and low of the Asia trading range using session timestamps in UTC+3. Sweep up and down are flagged when price bre

Indicator v5 SMC / ICT / price actionSessions & time
Updated 2 months ago · None stated GitHub repository of Asian Liquidity Sweep + NY Reversal
2 stars

Session Extreme Revisit identifies the highest supply candle and lowest demand candle formed during London and New York sessions and draws extended reaction zones on the price chart. It evaluates candidate candles using size, wick ratio, and displacement filte

Indicator v5 Sessions & timeSupport & resistance
Updated 5 months ago · None stated GitHub repository of Session Extreme Revisit — Pro
5 stars

This indicator calculates and plots virtual daily candlestick OHLC values shifted forward by several hours relative to the current time. By aggregating four-hour bar data from higher-timeframe requests, it constructs custom 24-hour periods and renders them as

Indicator v6 Candlestick patternsSessions & time
Updated 7 months ago · MIT GitHub repository of Day Candle Closed Hour(s) Ago
575 stars

The indicator plots ICT displacement candles on the price chart and can switch to retracement scanning. Displacement requires a move larger than a set share of the 14-bar average high-low range, lasting at least a chosen number of bars, with optional close, pr

Indicator v6 SMC / ICT / price actionCandlestick patterns
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Displacement Candles Indicator

Golden Bullet Strategy

by TradersPost
218 stars

The Golden Bullet Strategy is an overlay signal indicator based on Smart Money Concepts and time-based liquidity models. It identifies liquidity sweeps of a designated reference session range during a specified hunt window. It then confirms Market Structure Sh

Indicator v6 SMC / ICT / price actionSessions & time
Updated 3 months ago · None stated GitHub repository of Golden Bullet Strategy

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers