OPEN-SOURCE SCRIPT
Alpha Forge Market Entropy v1.1

Market Entropy is a regime-detection oscillator designed to help traders understand whether the current market environment is clean, chaotic, compressing, or transitioning.
Most indicators focus on direction.
Market Entropy focuses on **market behavior**.
Is price moving efficiently?
Is the market chopping sideways?
Is volatility expanding?
Is price coiling before a larger move?
Is the current environment worth trading at all?
This indicator was built to answer those questions.
---
What Market Entropy Measures
Market Entropy combines two core concepts:
1. Entropy
Entropy measures how random or unpredictable recent price movement has become.
In simple terms:
* **High Entropy** = noisy, unstable, choppy, less predictable price action
* **Low Entropy** = more ordered, cleaner, compressed, or directional price action
A high entropy reading often appears when price is moving erratically, fakeouts are common, and trend-following signals may become less reliable.
A low entropy reading often appears when price behavior becomes more structured. This can happen during clean trends, tight compression, or orderly price movement.
2. Directional Efficiency
Directional Efficiency measures how effectively price is moving from point A to point B.
A market can move a lot without going anywhere. That is inefficient movement.
Efficiency helps separate:
* Clean directional movement
* Tight compression
* Random chop
* Volatility expansion
This makes the tool more useful than a basic entropy reading alone.
Market Regime States
Market Entropy classifies the market into easy-to-read conditions:
Clean
A cleaner market environment where entropy is lower and price movement is more efficient.
This is often the best environment for directional continuation signals.
Coil
A compressed environment where entropy is low but efficiency is also low.
This can suggest price is tightening, consolidating, or preparing for expansion.
Noisy
A high-entropy, low-efficiency environment.
This is often where traders get chopped up. Fakeouts, failed breakouts, and poor follow-through are more common.
Expand
A high-entropy environment with stronger directional movement or range expansion.
This can appear during sharp moves, exhaustion phases, volatility bursts, or breakout-style conditions.
Mixed
A transitional state where the market does not strongly favor clean trend, compression, chaos, or expansion.
---
How to Use It
Market Entropy is not designed to be a blind buy/sell indicator.
It is designed to act as a **market condition filter**.
The goal is to help traders decide when signals from other tools deserve more trust, and when the environment is too unstable.
Example use cases:
* Avoid low-quality entries when entropy is high and efficiency is low
* Confirm trend setups when the market is clean and efficient
* Watch for expansion after compression
* Reduce position size or wait for confirmation in noisy conditions
* Use chaos readings as a warning that fakeouts may increase
---
Reading the Dashboard
The dashboard displays:
Entropy
Shows the current normalized entropy reading.
Higher values suggest more randomness or disorder.
Efficiency
Shows how efficiently price is moving.
Higher values suggest cleaner directional movement.
Lower values suggest chop, back-and-forth movement, or compression.
Regime
Displays the current market state:
* Clean
* Coil
* Noisy
* Expand
* Mixed
Trade Quality
Provides a simple interpretation of the current environment:
* **Clean** — stronger environment for directional setups
* **Caution** — conditions may be developing, but confirmation matters
* **Poor** — choppy or noisy environment
* **Neutral** — mixed or unclear conditions
Reason
Explains why the current trade-quality state is being shown.
---
Visual Guide
The oscillator uses branded colors:
* **Cyan / Blue** = cleaner, more ordered conditions
* **Red / Magenta** = chaotic or noisy conditions
* **Slate / Neutral** = transitional or mixed conditions
Columns display entropy behavior, while the efficiency line helps show whether the market is moving cleanly or inefficiently.
Optional regime markers can highlight major shifts between clean, coiling, noisy, expanding, and mixed conditions.
---
Why Entropy Matters
Many traders only ask:
“Is price going up or down?”
But a better question is:
“Is this market environment clean enough to trust the move?”
A breakout in a clean market is very different from a breakout in a chaotic market.
A reclaim in a structured environment is very different from a reclaim during high-entropy chop.
Market Entropy helps traders understand the difference.
---
Best Used With
Market Entropy can be used on its own, but it is especially powerful when paired with:
* Liquidity sweep tools
* Trend-following indicators
* Breakout systems
* Support/resistance strategies
* Volume confirmation tools
* Alpha Forge Liquidity Matrix Pro
For example:
A liquidity reclaim during a clean or improving entropy regime may deserve more attention.
A liquidity reclaim during high-entropy chop may require extra confirmation or be ignored entirely.
---
Key Features
* Shannon-style normalized entropy oscillator
* Directional efficiency calculation
* Market regime detection
* Clean / Coil / Noisy / Expand / Mixed states
* Trade Quality dashboard
* Reason-based dashboard explanation
* Optional background regime shading
* Optional regime markers
* Alpha Forge branded visuals
* Alerts for key regime shifts
Important Notes
Market Entropy does not predict the future.
It does not know where price must go next.
Instead, it evaluates the **quality of the current trading environment**.
The purpose is to help traders avoid forcing trades during poor conditions and recognize when market structure becomes cleaner, more compressed, more chaotic, or more explosive.
As always, this tool should be used with proper risk management and in combination with a complete trading plan.
---
Summary
Market Entropy is a market regime oscillator built to help traders identify when the market is clean, chaotic, compressed, expanding, or transitioning.
It brings information theory into a simple visual format so traders can better understand whether current conditions support confidence, caution, or patience.
**Trade the signal. Respect the environment.**
Most indicators focus on direction.
Market Entropy focuses on **market behavior**.
Is price moving efficiently?
Is the market chopping sideways?
Is volatility expanding?
Is price coiling before a larger move?
Is the current environment worth trading at all?
This indicator was built to answer those questions.
---
What Market Entropy Measures
Market Entropy combines two core concepts:
1. Entropy
Entropy measures how random or unpredictable recent price movement has become.
In simple terms:
* **High Entropy** = noisy, unstable, choppy, less predictable price action
* **Low Entropy** = more ordered, cleaner, compressed, or directional price action
A high entropy reading often appears when price is moving erratically, fakeouts are common, and trend-following signals may become less reliable.
A low entropy reading often appears when price behavior becomes more structured. This can happen during clean trends, tight compression, or orderly price movement.
2. Directional Efficiency
Directional Efficiency measures how effectively price is moving from point A to point B.
A market can move a lot without going anywhere. That is inefficient movement.
Efficiency helps separate:
* Clean directional movement
* Tight compression
* Random chop
* Volatility expansion
This makes the tool more useful than a basic entropy reading alone.
Market Regime States
Market Entropy classifies the market into easy-to-read conditions:
Clean
A cleaner market environment where entropy is lower and price movement is more efficient.
This is often the best environment for directional continuation signals.
Coil
A compressed environment where entropy is low but efficiency is also low.
This can suggest price is tightening, consolidating, or preparing for expansion.
Noisy
A high-entropy, low-efficiency environment.
This is often where traders get chopped up. Fakeouts, failed breakouts, and poor follow-through are more common.
Expand
A high-entropy environment with stronger directional movement or range expansion.
This can appear during sharp moves, exhaustion phases, volatility bursts, or breakout-style conditions.
Mixed
A transitional state where the market does not strongly favor clean trend, compression, chaos, or expansion.
---
How to Use It
Market Entropy is not designed to be a blind buy/sell indicator.
It is designed to act as a **market condition filter**.
The goal is to help traders decide when signals from other tools deserve more trust, and when the environment is too unstable.
Example use cases:
* Avoid low-quality entries when entropy is high and efficiency is low
* Confirm trend setups when the market is clean and efficient
* Watch for expansion after compression
* Reduce position size or wait for confirmation in noisy conditions
* Use chaos readings as a warning that fakeouts may increase
---
Reading the Dashboard
The dashboard displays:
Entropy
Shows the current normalized entropy reading.
Higher values suggest more randomness or disorder.
Efficiency
Shows how efficiently price is moving.
Higher values suggest cleaner directional movement.
Lower values suggest chop, back-and-forth movement, or compression.
Regime
Displays the current market state:
* Clean
* Coil
* Noisy
* Expand
* Mixed
Trade Quality
Provides a simple interpretation of the current environment:
* **Clean** — stronger environment for directional setups
* **Caution** — conditions may be developing, but confirmation matters
* **Poor** — choppy or noisy environment
* **Neutral** — mixed or unclear conditions
Reason
Explains why the current trade-quality state is being shown.
---
Visual Guide
The oscillator uses branded colors:
* **Cyan / Blue** = cleaner, more ordered conditions
* **Red / Magenta** = chaotic or noisy conditions
* **Slate / Neutral** = transitional or mixed conditions
Columns display entropy behavior, while the efficiency line helps show whether the market is moving cleanly or inefficiently.
Optional regime markers can highlight major shifts between clean, coiling, noisy, expanding, and mixed conditions.
---
Why Entropy Matters
Many traders only ask:
“Is price going up or down?”
But a better question is:
“Is this market environment clean enough to trust the move?”
A breakout in a clean market is very different from a breakout in a chaotic market.
A reclaim in a structured environment is very different from a reclaim during high-entropy chop.
Market Entropy helps traders understand the difference.
---
Best Used With
Market Entropy can be used on its own, but it is especially powerful when paired with:
* Liquidity sweep tools
* Trend-following indicators
* Breakout systems
* Support/resistance strategies
* Volume confirmation tools
* Alpha Forge Liquidity Matrix Pro
For example:
A liquidity reclaim during a clean or improving entropy regime may deserve more attention.
A liquidity reclaim during high-entropy chop may require extra confirmation or be ignored entirely.
---
Key Features
* Shannon-style normalized entropy oscillator
* Directional efficiency calculation
* Market regime detection
* Clean / Coil / Noisy / Expand / Mixed states
* Trade Quality dashboard
* Reason-based dashboard explanation
* Optional background regime shading
* Optional regime markers
* Alpha Forge branded visuals
* Alerts for key regime shifts
Important Notes
Market Entropy does not predict the future.
It does not know where price must go next.
Instead, it evaluates the **quality of the current trading environment**.
The purpose is to help traders avoid forcing trades during poor conditions and recognize when market structure becomes cleaner, more compressed, more chaotic, or more explosive.
As always, this tool should be used with proper risk management and in combination with a complete trading plan.
---
Summary
Market Entropy is a market regime oscillator built to help traders identify when the market is clean, chaotic, compressed, expanding, or transitioning.
It brings information theory into a simple visual format so traders can better understand whether current conditions support confidence, caution, or patience.
**Trade the signal. Respect the environment.**
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Discord: discord.gg/gnjf87QGmv
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Discord: discord.gg/gnjf87QGmv
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.