OPEN-SOURCE SCRIPT
Entropy-Gated Expansion State

This indicator identifies sustained directional expansion regimes by separating regime qualification from regime persistence. Directional entropy is used to detect when price transitions from a disordered environment into a structured one, acting as a gate that enables participation only during favorable market conditions. Once qualified, trend structure maintains the active state through consolidations and minor pullbacks, ensuring the indicator remains engaged throughout the expansion phase rather than firing as a short-lived signal.
The result is a persistent, state-based output that avoids sideways markets, reduces noise, and remains active during sustained trends across a wide range of assets, including high-volatility instruments.
The result is a persistent, state-based output that avoids sideways markets, reduces noise, and remains active during sustained trends across a wide range of assets, including high-volatility instruments.
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.
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.
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.