OPEN-SOURCE SCRIPT
Trend Market by erdensedat

This indicator ("Trend Market") is a highly comprehensive trading system that brings together modern Smart Money Concepts (SMC), Price Action analysis, and dynamic trend structures under one roof. Breaking away from the lagging nature of traditional indicators, it focuses entirely on the real-time market structure dictated by price itself.
Here are the core features of the indicator and what they mean for your trading:
1. Market Structure (MS) Breakouts
The indicator instantly detects shifts in market structure. When price breaks through previous lower highs or higher lows, it labels them as BOS (Break of Structure) to indicate trend continuation, or CHoCH (Change of Character) at points where the trend changes direction. These breakouts are the most fundamental Price Action components for understanding where the price wants to go.
2. Order Blocks and High-Probability Entries (Re-Tests)
When a BOS or CHoCH occurs, the indicator automatically draws "Order Block" zones, which highlight where the institutional volume that initiated the breakout is concentrated.
Why it matters: Order Blocks (OB) are areas where "smart money" enters the market with large volume. After these breakouts, price often retraces (re-tests) these zones to grab liquidity. Entering a trade when a trend-aligned Order Block is tested provides the highest risk-to-reward (R/R) ratio and the most robust, reliable entry opportunities (sniper entries).
3. FVG (Fair Value Gaps)
The indicator detects FVGs, which represent imbalances in the market.
Why it matters: FVGs occur during rapid, high-volume price movements when there is an imbalance between buyers and sellers. FVGs formed at the beginning of a new trend (especially alongside a CHoCH) confirm the strength of that trend. FVGs formed while a trend is ongoing act as magnets for the price during pullbacks, serving as potential support/resistance and target areas.
4. Ghost Trend Engine
Unlike traditional static trendlines, this feature calculates the slopes of price wicks to generate dynamic trendlines that adapt to the market's momentum. It draws both Minor (Ghost) and Major (Confirm) resistance and support slopes.
The Confirmation Mechanism: If price bounces off one of these dynamic Ghost/Confirm trendlines during an Order Block re-test or an FVG fill, your entry signal becomes "double confirmed." Furthermore, when these trendlines are broken, they serve as early warning signs of an impending trend reversal.
5. Dynamic TP (Take Profit) Machine (Infinite Fibonacci)
It plots automatic Fibonacci extension levels calculated from your entry point (CHoCH/BOS) and the peak/trough of the current structure.
How it works: As price hits these targets (TP1, TP2, etc.), the indicator automatically extends the targets higher/lower, creating an infinite sequence of Take Profit levels. No matter how far a trend extends, your potential target levels will always be ready on your chart.
Summary: How to Trade with It?
Determine the market direction using the CHoCH and BOS labels.
Don't rush in immediately after a breakout; wait for the price to retrace (Re-test) into the Order Block (OB) or FVG zones.
When price reaches these zones, observe the reaction from the Ghost Trend lines to confirm that the trend will continue.
Once you enter a trade, use the automatically generated Dynamic TP levels for scaled profit-taking.
Disclaimer
This indicator is designed for educational, analytical, and informational purposes only. The signals, labels, or support/resistance zones provided do not constitute financial or investment advice. Trading cryptocurrencies, stocks, and forex involves a high degree of risk and can result in the loss of your entire capital. All trades taken using this indicator are strictly at your own risk and responsibility. Please ensure you apply your own risk management and trading plan.
Here are the core features of the indicator and what they mean for your trading:
1. Market Structure (MS) Breakouts
The indicator instantly detects shifts in market structure. When price breaks through previous lower highs or higher lows, it labels them as BOS (Break of Structure) to indicate trend continuation, or CHoCH (Change of Character) at points where the trend changes direction. These breakouts are the most fundamental Price Action components for understanding where the price wants to go.
2. Order Blocks and High-Probability Entries (Re-Tests)
When a BOS or CHoCH occurs, the indicator automatically draws "Order Block" zones, which highlight where the institutional volume that initiated the breakout is concentrated.
Why it matters: Order Blocks (OB) are areas where "smart money" enters the market with large volume. After these breakouts, price often retraces (re-tests) these zones to grab liquidity. Entering a trade when a trend-aligned Order Block is tested provides the highest risk-to-reward (R/R) ratio and the most robust, reliable entry opportunities (sniper entries).
3. FVG (Fair Value Gaps)
The indicator detects FVGs, which represent imbalances in the market.
Why it matters: FVGs occur during rapid, high-volume price movements when there is an imbalance between buyers and sellers. FVGs formed at the beginning of a new trend (especially alongside a CHoCH) confirm the strength of that trend. FVGs formed while a trend is ongoing act as magnets for the price during pullbacks, serving as potential support/resistance and target areas.
4. Ghost Trend Engine
Unlike traditional static trendlines, this feature calculates the slopes of price wicks to generate dynamic trendlines that adapt to the market's momentum. It draws both Minor (Ghost) and Major (Confirm) resistance and support slopes.
The Confirmation Mechanism: If price bounces off one of these dynamic Ghost/Confirm trendlines during an Order Block re-test or an FVG fill, your entry signal becomes "double confirmed." Furthermore, when these trendlines are broken, they serve as early warning signs of an impending trend reversal.
5. Dynamic TP (Take Profit) Machine (Infinite Fibonacci)
It plots automatic Fibonacci extension levels calculated from your entry point (CHoCH/BOS) and the peak/trough of the current structure.
How it works: As price hits these targets (TP1, TP2, etc.), the indicator automatically extends the targets higher/lower, creating an infinite sequence of Take Profit levels. No matter how far a trend extends, your potential target levels will always be ready on your chart.
Summary: How to Trade with It?
Determine the market direction using the CHoCH and BOS labels.
Don't rush in immediately after a breakout; wait for the price to retrace (Re-test) into the Order Block (OB) or FVG zones.
When price reaches these zones, observe the reaction from the Ghost Trend lines to confirm that the trend will continue.
Once you enter a trade, use the automatically generated Dynamic TP levels for scaled profit-taking.
Disclaimer
This indicator is designed for educational, analytical, and informational purposes only. The signals, labels, or support/resistance zones provided do not constitute financial or investment advice. Trading cryptocurrencies, stocks, and forex involves a high degree of risk and can result in the loss of your entire capital. All trades taken using this indicator are strictly at your own risk and responsibility. Please ensure you apply your own risk management and trading plan.
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.