PROTECTED SOURCE SCRIPT
Aggiornato Repainting Trendline Break & Retest

✅ 1. Add the Script to Your Chart
Open your TradingView chart (5-minute or 15-minute is recommended).
✅ 2. Interpret the Trendlines
A green line is drawn upward from the latest swing low — this is support.
A red line is drawn downward from the latest swing high — this is resistance.
These lines repaint — they update every time a new potential swing is identified.
⚠️ They are not fixed; they're "live" trendlines — just like you'd manually adjust during active trading.
📈 Trading the Signals
🔼 Buy Setup (Long Entry)
Wait for a break above the red (resistance) trendline.
Then wait for a retest of that same trendline — price should come back near it within a small % (configurable).
When this happens, a green triangle and lime X will show below the candle.
✅ Interpretation: Price broke out and passed a "retest check" — bullish momentum is likely continuing.
🔽 Sell Setup (Short Entry)
Wait for a break below the green (support) trendline.
Then wait for a retest back to that broken support.
A red triangle and orange X will appear above the bar.
✅ Interpretation: Breakdown confirmed with a retest — potential short opportunity.
⚙️ Settings You Can Customize
Swing Length: Adjusts how far back to look for swing highs/lows. Default = 20.
Retest Tolerance: How close price must get to the trendline after a break to qualify as a retest. Default = 0.3%.
Try adjusting these if you:
Want tighter or looser confirmation
Trade different timeframes or volatility levels
🛎️ Bonus: Adding Alerts (Optional)
Want real-time alerts? You can add this in a few steps:
Click the "Alarm Clock" icon on the top bar.
Click "Create Alert".
In "Condition", choose:
Break Above, Break Below
or Retest Above, Retest Below
📊 Best Timeframes to Use
5-minute and 15-minute for scalping/intraday.
Can also be tested on 1h for swing entries.
Open your TradingView chart (5-minute or 15-minute is recommended).
✅ 2. Interpret the Trendlines
A green line is drawn upward from the latest swing low — this is support.
A red line is drawn downward from the latest swing high — this is resistance.
These lines repaint — they update every time a new potential swing is identified.
⚠️ They are not fixed; they're "live" trendlines — just like you'd manually adjust during active trading.
📈 Trading the Signals
🔼 Buy Setup (Long Entry)
Wait for a break above the red (resistance) trendline.
Then wait for a retest of that same trendline — price should come back near it within a small % (configurable).
When this happens, a green triangle and lime X will show below the candle.
✅ Interpretation: Price broke out and passed a "retest check" — bullish momentum is likely continuing.
🔽 Sell Setup (Short Entry)
Wait for a break below the green (support) trendline.
Then wait for a retest back to that broken support.
A red triangle and orange X will appear above the bar.
✅ Interpretation: Breakdown confirmed with a retest — potential short opportunity.
⚙️ Settings You Can Customize
Swing Length: Adjusts how far back to look for swing highs/lows. Default = 20.
Retest Tolerance: How close price must get to the trendline after a break to qualify as a retest. Default = 0.3%.
Try adjusting these if you:
Want tighter or looser confirmation
Trade different timeframes or volatility levels
🛎️ Bonus: Adding Alerts (Optional)
Want real-time alerts? You can add this in a few steps:
Click the "Alarm Clock" icon on the top bar.
Click "Create Alert".
In "Condition", choose:
Break Above, Break Below
or Retest Above, Retest Below
📊 Best Timeframes to Use
5-minute and 15-minute for scalping/intraday.
Can also be tested on 1h for swing entries.
Note di rilascio
📘 How to Use: Repainting Trendline Break & Retest Indicator🔍 What It Does
This script automatically draws dynamic trendlines:
A support trendline from the most recent swing low.
A resistance trendline from the most recent swing high.
It then detects:
Breakouts of those trendlines.
Retests of the broken level (within a small tolerance).
Visually plots signals when both occur.
These are common signals used by professional traders to enter trend continuation trades after a breakout has been confirmed with a retest.
🧭 How to Use It on Trading View
✅ 1. Add the Script to Your Chart
Open your Trading View chart (5-minute or 15-minute is recommended).
✅ 2. Interpret the Trendlines
A green line is drawn upward from the latest swing low — this is support.
A red line is drawn downward from the latest swing high — this is resistance.
These lines repaint — they update every time a new potential swing is identified.
⚠️ They are not fixed; they're "live" trendlines — just like you'd manually adjust during active trading.
📈 Trading the Signals
🔼 Buy Setup (Long Entry)
Wait for a break above the red (resistance) trendline.
Then wait for a retest of that same trendline — price should come back near it within a small % (configurable).
When this happens, a green triangle and lime X will show below the candle.
✅ Interpretation: Price broke out and passed a "retest check" — bullish momentum is likely continuing.
🔽 Sell Setup (Short Entry)
Wait for a break below the green (support) trendline.
Then wait for a retest back to that broken support.
A red triangle and orange X will appear above the bar.
✅ Interpretation: Breakdown confirmed with a retest — potential short opportunity.
⚙️ Settings You Can Customize
Swing Length: Adjusts how far back to look for swing highs/lows. Default = 20.
Retest Tolerance: How close price must get to the trendline after a break to qualify as a retest. Default = 0.3%.
Try adjusting these if you:
Want tighter or looser confirmation
Trade different timeframes or volatility levels
🛎️ Bonus: Adding Alerts (Optional)
Want real-time alerts? You can add this in a few steps:
Click the "Alarm Clock" icon on the top bar.
Click "Create Alert".
In "Condition", choose:
Break Above, Break Below
or Retest Above, Retest Below
Choose how you want to be alerted (popup, email, webhook, app).
Hit "Create".
✅ Now you'll get notified every time a setup forms live.
📊 Best Timeframes to Use
5-minute and 15-minute for scalping/intraday.
Can also be tested on 1h for swing entries.
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.