1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
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.
Session state tracking with New York time alignment
Market structure and draw on liquidity analysis
Order block and liquidity pool detection
Confluence scoring engine for entry signals
Volume profile analysis with dynamic take-profit targets
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
🕐 Timezone for CRT Models
string
America/New_York
timezone_mode
Show Timezone Info on Chart
bool
true
show_timezone_info
1AM NY Model
bool
true
enable_1am_crt
5AM NY Model
bool
true
enable_5am_crt
9AM NY Model
bool
true
enable_9am_crt
Order Block Method
string
Strict (Cursor)
ob_detection_method
Enable DOL Analysis Engine
bool
true
enable_dol_engine
DOL Pivot Strength
int
10
pivot_strength
Enable Session State Machine
bool
true
enable_session_engine
Enable Live Entry Signals
bool
true
enable_entry_engine
Debug Mode (Show All States)
bool
false
enable_debug_mode
Enable Market Structure Analysis
bool
true
enable_market_structure
Show all 40 settings
Setting
Type
Default
Variable
Enable Liquidity Pool Detection
bool
true
enable_liquidity_pools
Enable Volume Profile Analysis
bool
true
enable_volume_profile
Enable Multi-Pair Correlation
bool
true
enable_correlation
Enable Risk Management
bool
true
enable_risk_management
Enable Performance Tracking
bool
true
enable_performance_tracking
Monitor CBDR (17:00)
bool
true
monitor_cbdr
Monitor Asia (21:00)
bool
true
monitor_asia
Monitor London (01:00)
bool
true
monitor_london
Monitor London Lunch (05:00)
bool
true
monitor_lunch
Monitor NY Open (09:00)
bool
true
monitor_ny
Take-Profit Method
string
Dynamic (Cursor)
tp_calculation_method
Risk:Reward Ratio (for Fixed R:R)
float
2.0
risk_reward_ratio
Entry Timeframe
string
15
entry_timeframe
Require SMT Confluence
bool
true
require_smt_confluence
Auto Risk Management
bool
true
auto_risk_management
Minimum Entry Score (0-100)
int
60
min_entry_score
Require Market Structure Alignment
bool
true
require_structure_alignment
Require Liquidity Sweep
bool
false
require_liquidity_sweep
Require Volume Confluence
bool
true
require_volume_confluence
Dashboard Theme
string
Professional Dark
dashboard_theme
Chart Background is Dark
bool
true
chart_background_dark
Show DOL Lines
bool
true
show_dol_lines
Show Session Boxes
bool
true
show_session_boxes
Show Key Levels
bool
true
show_key_levels
Show Entry Signals
bool
true
show_entry_signals
Show Market Structure
bool
true
show_market_structure
Show Liquidity Pools
bool
true
show_liquidity_pools
Show Volume Profile
bool
true
show_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.
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
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
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
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
This indicator overlays liquidity heatmaps, footprint bars, and imbalance detections on the price chart. It calculates liquidity zones using sweep percentages and wick weights, displays volume candle deltas, and detects order imbalances based on volume ratios.
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