OPEN-SOURCE SCRIPT
Fractal Levels Monitor w/ Trade Lines (ChadAnt) v2

Small update. Prevents the break candle from getting another signal after the first buy/sell signal detected.
1. Fractal Level Detection
The indicator identifies Fractals, which are simply a series of bars where the center bar has the highest high (Bearish Fractal) or the lowest low (Bullish Fractal) compared to a set number of bars on either side (determined by the "Fractal Period" input, usually 2 to 5 bars).
Bullish Fractal Level (Support): The indicator plots a horizontal line at the lowest low of the most recently formed Bullish Fractal.
Bearish Fractal Level (Resistance): It plots a horizontal line at the highest high of the most recently formed Bearish Fractal.
2. The "Cross Candle" Event
The core idea isn't to trade the fractal itself, but the reaction after the fractal level is broken.
When the price breaks and closes through the established Bullish Level (support) or Bearish Level (resistance), that bar is marked as the Cross Candle.
This Cross Candle's High and Low are saved. This is the "setup" for the trade.
3. The Trade Signal (Entry Trigger)
A trade is only taken when the price breaks the extreme (High or Low) of the Cross Candle.
Buy Signal: The trade is entered long if the price breaks above the High of the Cross Candle.
Sell Signal: The trade is entered short if the price breaks below the Low of the Cross Candle.
1. Fractal Level Detection
The indicator identifies Fractals, which are simply a series of bars where the center bar has the highest high (Bearish Fractal) or the lowest low (Bullish Fractal) compared to a set number of bars on either side (determined by the "Fractal Period" input, usually 2 to 5 bars).
Bullish Fractal Level (Support): The indicator plots a horizontal line at the lowest low of the most recently formed Bullish Fractal.
Bearish Fractal Level (Resistance): It plots a horizontal line at the highest high of the most recently formed Bearish Fractal.
2. The "Cross Candle" Event
The core idea isn't to trade the fractal itself, but the reaction after the fractal level is broken.
When the price breaks and closes through the established Bullish Level (support) or Bearish Level (resistance), that bar is marked as the Cross Candle.
This Cross Candle's High and Low are saved. This is the "setup" for the trade.
3. The Trade Signal (Entry Trigger)
A trade is only taken when the price breaks the extreme (High or Low) of the Cross Candle.
Buy Signal: The trade is entered long if the price breaks above the High of the Cross Candle.
Sell Signal: The trade is entered short if the price breaks below the Low of the Cross Candle.
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.