PROTECTED SOURCE SCRIPT
Trendline Break + Retest + Fibonacci Filter

🔍 How It Works
Repainting Trendlines
Draws dynamic trendlines from the most recent swing highs and swing lows.
These trendlines adjust in real time (repainting) as new pivots appear.
Breakout Detection
Identifies when price breaks above resistance or below support.
Retest Confirmation
Waits for price to pull back to the broken trendline (within a defined tolerance).
Fibonacci Confluence
Only enters a trade if the retest also lands within a Fibonacci retracement zone (default: 38.2% to 61.8%).
This improves setup quality by requiring price to retrace to a known level of interest.
🎯 Trade Conditions
Setup Requirements
Long Break above resistance → retest → price inside 38–61% Fib pullback zone
Short Break below support → retest → price inside 38–61% Fib pullback zone
Trades are entered at market once all conditions are met, with:
Configurable Take Profit and Stop Loss based on % distance
Fully displayed entry points on the chart (Buy/Sell labels)
⚙️ Custom Settings
Swing Length: Defines how far back to look for swing highs/lows.
Retest Tolerance: How close price must come to trendline after breakout.
Fibonacci Min/Max: Range of acceptable Fib retracement zone (e.g., 0.382 to 0.618).
Stop Loss / Take Profit: Simple R/R configuration.
📈 Best For:
Intraday traders on 5m/15m charts
Trend continuation traders
Anyone who uses confluence (trendlines + Fib levels)
Repainting Trendlines
Draws dynamic trendlines from the most recent swing highs and swing lows.
These trendlines adjust in real time (repainting) as new pivots appear.
Breakout Detection
Identifies when price breaks above resistance or below support.
Retest Confirmation
Waits for price to pull back to the broken trendline (within a defined tolerance).
Fibonacci Confluence
Only enters a trade if the retest also lands within a Fibonacci retracement zone (default: 38.2% to 61.8%).
This improves setup quality by requiring price to retrace to a known level of interest.
🎯 Trade Conditions
Setup Requirements
Long Break above resistance → retest → price inside 38–61% Fib pullback zone
Short Break below support → retest → price inside 38–61% Fib pullback zone
Trades are entered at market once all conditions are met, with:
Configurable Take Profit and Stop Loss based on % distance
Fully displayed entry points on the chart (Buy/Sell labels)
⚙️ Custom Settings
Swing Length: Defines how far back to look for swing highs/lows.
Retest Tolerance: How close price must come to trendline after breakout.
Fibonacci Min/Max: Range of acceptable Fib retracement zone (e.g., 0.382 to 0.618).
Stop Loss / Take Profit: Simple R/R configuration.
📈 Best For:
Intraday traders on 5m/15m charts
Trend continuation traders
Anyone who uses confluence (trendlines + Fib levels)
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.