OPEN-SOURCE SCRIPT
Celestial State

Celestial State (C1) – Market Bias & Candle Intent
Celestial State (C1) is a price-action indicator designed to clarify market bias, momentum, and risk conditions using nothing but candle structure.
No indicators.
No lag.
Just clean candle logic.
The tool separates state (what the market is) from intent (what the market is doing right now).
🔹 Core Concept
The indicator works on the chart timeframe and uses closed candles only to define market state.
It then monitors the current candle to identify:
momentum confirmation
early warnings
potential trap / reversal behaviour
🔹 Market State (Based on C1 – last closed candle)
State is derived from the relationship between the last two closed candles:
Bull Trend Start
Bearish candle → Bullish candle
Bull Continuation
Bullish candle → Bullish candle
Bear Trend Start
Bullish candle → Bearish candle
Bear Continuation
Bearish candle → Bearish candle
This defines the directional environment before any decision is made.
🔹 Bias & Momentum (Live Candle)
Once state is defined, the current candle is monitored relative to the previous candle’s high and low.
Strong Buy
Bullish state
Previous candle bullish
Current candle breaks previous high
Strong Sell
Bearish state
Previous candle bearish
Current candle breaks previous low
These represent momentum continuation with confirmation.
Buy / Sell (Normal Bias)
Price is in a bullish or bearish state
No momentum break yet
This is directional bias without confirmation.
Changing Bias
Bullish state + previous low broken
Bearish state + previous high broken
This warns that control is being challenged and conditions may be shifting.
🔹 Flip (Strict Order)
A Flip is a high-risk condition where expansion fails:
Bull Flip
Current candle breaks previous high first, then breaks previous low
Bear Flip
Current candle breaks previous low first, then breaks previous high
This often signals:
failed breakouts
stop hunts
transition zones
🔹 Visual Output
Top-right panel shows:
Current Celestial State (C1)
Current Bias (Strong Buy / Sell / Changing Bias)
Short explanation (e.g. High broken, Low broken)
On-chart markers are intentionally minimal and offset away from price to reduce clutter.
🔹 Who This Is For
This indicator is built for traders who:
trade price action
want context before execution
prefer clarity over complexity
understand that bias ≠ entry
⚠️ Disclaimer
This tool does not provide entries, exits, or risk management.
It is a context and intent framework, not a signal system.
Use it as a decision-support layer alongside your own execution rules.
Celestial State (C1) is a price-action indicator designed to clarify market bias, momentum, and risk conditions using nothing but candle structure.
No indicators.
No lag.
Just clean candle logic.
The tool separates state (what the market is) from intent (what the market is doing right now).
🔹 Core Concept
The indicator works on the chart timeframe and uses closed candles only to define market state.
It then monitors the current candle to identify:
momentum confirmation
early warnings
potential trap / reversal behaviour
🔹 Market State (Based on C1 – last closed candle)
State is derived from the relationship between the last two closed candles:
Bull Trend Start
Bearish candle → Bullish candle
Bull Continuation
Bullish candle → Bullish candle
Bear Trend Start
Bullish candle → Bearish candle
Bear Continuation
Bearish candle → Bearish candle
This defines the directional environment before any decision is made.
🔹 Bias & Momentum (Live Candle)
Once state is defined, the current candle is monitored relative to the previous candle’s high and low.
Strong Buy
Bullish state
Previous candle bullish
Current candle breaks previous high
Strong Sell
Bearish state
Previous candle bearish
Current candle breaks previous low
These represent momentum continuation with confirmation.
Buy / Sell (Normal Bias)
Price is in a bullish or bearish state
No momentum break yet
This is directional bias without confirmation.
Changing Bias
Bullish state + previous low broken
Bearish state + previous high broken
This warns that control is being challenged and conditions may be shifting.
🔹 Flip (Strict Order)
A Flip is a high-risk condition where expansion fails:
Bull Flip
Current candle breaks previous high first, then breaks previous low
Bear Flip
Current candle breaks previous low first, then breaks previous high
This often signals:
failed breakouts
stop hunts
transition zones
🔹 Visual Output
Top-right panel shows:
Current Celestial State (C1)
Current Bias (Strong Buy / Sell / Changing Bias)
Short explanation (e.g. High broken, Low broken)
On-chart markers are intentionally minimal and offset away from price to reduce clutter.
🔹 Who This Is For
This indicator is built for traders who:
trade price action
want context before execution
prefer clarity over complexity
understand that bias ≠ entry
⚠️ Disclaimer
This tool does not provide entries, exits, or risk management.
It is a context and intent framework, not a signal system.
Use it as a decision-support layer alongside your own execution rules.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.