Indicator · Pine Script v5 · On the chart

CRT State Engine Complete

by alboogycOdR

This indicator overlays an institutional Candle Range Theory (CRT) framework directly on the price chart.

View on GitHub

GitHub stars6on the repository
Pine versionv5runs as is
Lines of code1,033
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

CRT State Engine Complete analyzes session states across New York time models (1 AM, 5 AM, and 9 AM), detects market structure breaks, identifies order blocks, and tracks liquidity pools alongside volume profile metrics. Entry signals are generated through a scoring engine evaluating structure alignment, liquidity sweeps, and SMT correlation confluence. User inputs allow configuring session models, order block sensitivity, minimum entry score thresholds, and dynamic or fixed risk-to-reward take-profit calculations.

Details

Published by

alboogycOdR on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

SMC / ICT / price action, Sessions & time, Support & resistance, Volume

Markets

Forex, Gold, Indices

Timeframes

M1-M5, M15-H1

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
🕐 Timezone for CRT ModelsstringAmerica/New_Yorktimezone_mode
Show Timezone Info on Chartbooltrueshow_timezone_info
1AM NY Modelbooltrueenable_1am_crt
5AM NY Modelbooltrueenable_5am_crt
9AM NY Modelbooltrueenable_9am_crt
Order Block MethodstringStrict (Cursor)ob_detection_method
Enable DOL Analysis Enginebooltrueenable_dol_engine
DOL Pivot Strengthint10pivot_strength
Enable Session State Machinebooltrueenable_session_engine
Enable Live Entry Signalsbooltrueenable_entry_engine
Debug Mode (Show All States)boolfalseenable_debug_mode
Enable Market Structure Analysisbooltrueenable_market_structure
Show all 40 settings
SettingTypeDefaultVariable
Enable Liquidity Pool Detectionbooltrueenable_liquidity_pools
Enable Volume Profile Analysisbooltrueenable_volume_profile
Enable Multi-Pair Correlationbooltrueenable_correlation
Enable Risk Managementbooltrueenable_risk_management
Enable Performance Trackingbooltrueenable_performance_tracking
Monitor CBDR (17:00)booltruemonitor_cbdr
Monitor Asia (21:00)booltruemonitor_asia
Monitor London (01:00)booltruemonitor_london
Monitor London Lunch (05:00)booltruemonitor_lunch
Monitor NY Open (09:00)booltruemonitor_ny
Take-Profit MethodstringDynamic (Cursor)tp_calculation_method
Risk:Reward Ratio (for Fixed R:R)float2.0risk_reward_ratio
Entry Timeframestring15entry_timeframe
Require SMT Confluencebooltruerequire_smt_confluence
Auto Risk Managementbooltrueauto_risk_management
Minimum Entry Score (0-100)int60min_entry_score
Require Market Structure Alignmentbooltruerequire_structure_alignment
Require Liquidity Sweepboolfalserequire_liquidity_sweep
Require Volume Confluencebooltruerequire_volume_confluence
Dashboard ThemestringProfessional Darkdashboard_theme
Chart Background is Darkbooltruechart_background_dark
Show DOL Linesbooltrueshow_dol_lines
Show Session Boxesbooltrueshow_session_boxes
Show Key Levelsbooltrueshow_key_levels
Show Entry Signalsbooltrueshow_entry_signals
Show Market Structurebooltrueshow_market_structure
Show Liquidity Poolsbooltrueshow_liquidity_pools
Show Volume Profilebooltrueshow_volume_profile
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

Moon Dev GEX Sweep & CVD

by moondevonyt
92 stars

The indicator detects liquidity sweeps across key price levels and calculates a cumulative volume delta proxy. It uses pivot high and low lookbacks to identify swing points, marking sweeps when price breaks beyond a level and quickly closes back inside. Featur

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 8 weeks ago · Custom licence GitHub repository of Moon Dev GEX Sweep & CVD

Smart Money Concepts

by TamTH-Dev
2 stars

This indicator maps market structure and session activity directly on the price chart. It detects and labels internal and swing structures with customizable confluence filters and candle coloring. Additionally, it highlights major trading killzones including N

Indicator v5 SMC / ICT / price actionSessions & time Repaints
Updated 5 weeks ago · None stated GitHub repository of Smart Money Concepts

This overlay indicator builds a weighted volume profile over a chosen number of bars and plots pivot points with a point of control line on the price chart. Volume can be weighted toward recent, normal, or past bars, and swing length, row count, and alignment

Indicator v5 VolumeSupport & resistance
Updated 5 months ago · None stated GitHub repository of Weighted Volume Profile Pivot Points | Flux Charts
1 stars

Advanced Market Theory calculates Market Profile, TPO, and Hybrid profiles directly on the price chart. It identifies key structural levels including the Point of Control, Value Area High and Low boundaries, Initial Balance range projections, single prints, po

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 11 months ago · None stated GitHub repository of Advanced Market Theory

VP

by dearvn
257 stars

This indicator calculates and plots a session-based volume profile directly on the price chart. It maps volume distribution across price levels, highlighting key structural reference points including the Point of Control, Value Area High, and Value Area Low. C

Indicator v5 VolumeSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of VP

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