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.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.