Indicator · Pine Script v5 · On the chart

CRT State Engine

by alboogycOdR

This overlay indicator tracks CRT models at 1:00, 5:00 and 9:00 and a session state machine covering CBDR, Asia, London, London lunch and the New York open.

View on GitHub

GitHub stars6on the repository
Pine versionv5runs as is
Lines of code1,130
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 analyzes draw-on-liquidity pivots, market structure, liquidity pools, volume profile and multi-pair correlation, then plots DOL lines, session boxes and key levels such as order blocks and fair value gaps on the price chart. Optional live entry labels require a minimum score, SMT confluence, structure alignment and volume confirmation, with a configurable risk-reward ratio. It is not a strategy and does not place orders or enforce a stop.

Details

Published by

alboogycOdR on GitHub

Draws

On the price chart

Markets

Any symbol

Timeframes

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
1AM CRT Modelbooltrueenable_1am_crt
5AM CRT Modelbooltrueenable_5am_crt
9AM CRT Modelbooltrueenable_9am_crt
Enable DOL Analysis Enginebooltrueenable_dol_engine
Enable Session State Machinebooltrueenable_session_engine
Enable Live Entry Signalsbooltrueenable_entry_engine
Debug Mode (Show All States)boolfalseenable_debug_mode
DOL Pivot Strengthint10pivot_strength
Enable Market Structure Analysisbooltrueenable_market_structure
Enable Liquidity Pool Detectionbooltrueenable_liquidity_pools
Enable Volume Profile Analysisbooltrueenable_volume_profile
Enable Multi-Pair Correlationbooltrueenable_correlation
Show all 40 settings
SettingTypeDefaultVariable
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
Entry Timeframestring15entry_timeframe
Require SMT Confluencebooltruerequire_smt_confluence
Auto Risk Managementbooltrueauto_risk_management
Risk:Reward Ratiofloat2.0risk_reward_ratio
Minimum Entry Score (0-100)int60min_entry_score
Require Market Structure Alignmentbooltruerequire_structure_alignment
Require Liquidity Sweepboolfalserequire_liquidity_sweep
Require Volume Confluencebooltruerequire_volume_confluence
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
Show Advanced Dashboardbooltrueshow_advanced_dashboard
Bullish DOLcolorcolor.new(color.green, 20)col_bullish_dol
Bearish DOLcolorcolor.new(color.red, 20)col_bearish_dol
Consolidationcolorcolor.new(color.gray, 80)col_consolidation
Manipulationcolorcolor.new(color.orange, 80)col_manipulation
Expansioncolorcolor.new(color.blue, 80)col_expansion
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 2 months 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 SMC / ICT scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

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

Compare brokers