OPEN-SOURCE SCRIPT
S.O.F.T Channel & Trend Line // Alerts V1.4

S.O.F.T Channel & Trend Line // Alerts V1.4
This indicator draws parallel channels (support & resistance) and trend lines based on time-anchored geometry.
You can add this indicator multiple times on the same chart to create as many channels and/or trend lines as needed, each one with its own settings and alerts.
This makes it suitable for multi-structure analysis (short, medium, and long-term levels).
It is designed to be reliable for alerts, with a strong focus on visual clarity and real trading usability.
Version V1.4 introduces a more practical Auto Channel system that always stays inside the visible chart area, along with smoother angle control and a clean Single Line mode.
🔑 Key Features
📐 Parallel price channel (support & resistance)
📈 Single trend line mode (support or resistance)
🧭 Auto Anchors (Visible Mode)
Point 2 = last chart bar
Point 1 = user-defined number of bars back
➡️ Lines extended into the future
🎚️ Fine vertical offset
📐 Micro-angle control (points per 1000 bars)
🔔 Alerts on line or channel touch
🎨 Dynamic coloring:
Channel → blue
Single Line → green (rising) / red (falling) / gray (flat)
⚠️ IMPORTANT – About Line Handles (Read Carefully)
TradingView automatically displays drag handles on drawn lines.
These handles are visual only in this script.
❗ Do NOT use the vertical anchor handles to move the lines.
Moving the line manually does NOT change:
Anchor points
Channel geometry
Alert trigger levels
Alerts are calculated only from the script inputs, not from manual dragging.
Using the handles may cause a visual mismatch between the line position and alert behavior.
✅ Correct way to adjust the channel or line:
Use the script parameters:
Auto Anchors (bars lookback)
Vertical Offset
Angle control
This guarantees visual and alert consistency.
🧠 Why This Design
This indicator prioritizes:
Stability over repainting
Predictable alerts
Time-based structure instead of bar-index dependencies
It works consistently on:
Indices (NASDAQ, S&P, DAX…)
Metals (XAUUSD, XAGUSD)
Forex
Crypto
And on all timeframes:
M15 / M30 / H1 and higher
🎯 Typical Use Cases
Trend-following channels
Dynamic support & resistance
Mean reversion zones
Alert-based discretionary trading
Clean market structure visualization
📝 Notes
Manual dragging of lines is not supported by design.
Alerts are non-repainting once the anchors are defined.
This script does not read TradingView drawing tools (platform limitation).
IMPORTANT:
Do not manually drag the line anchor handles.
Manual dragging is visual only and does not affect alert levels.
All adjustments must be done using the indicator settings.
S.O.F.T – Stéphane Olivier Fabrice Trading
Built for clarity, precision, and real trading conditions.
This indicator draws parallel channels (support & resistance) and trend lines based on time-anchored geometry.
You can add this indicator multiple times on the same chart to create as many channels and/or trend lines as needed, each one with its own settings and alerts.
This makes it suitable for multi-structure analysis (short, medium, and long-term levels).
It is designed to be reliable for alerts, with a strong focus on visual clarity and real trading usability.
Version V1.4 introduces a more practical Auto Channel system that always stays inside the visible chart area, along with smoother angle control and a clean Single Line mode.
🔑 Key Features
📐 Parallel price channel (support & resistance)
📈 Single trend line mode (support or resistance)
🧭 Auto Anchors (Visible Mode)
Point 2 = last chart bar
Point 1 = user-defined number of bars back
➡️ Lines extended into the future
🎚️ Fine vertical offset
📐 Micro-angle control (points per 1000 bars)
🔔 Alerts on line or channel touch
🎨 Dynamic coloring:
Channel → blue
Single Line → green (rising) / red (falling) / gray (flat)
⚠️ IMPORTANT – About Line Handles (Read Carefully)
TradingView automatically displays drag handles on drawn lines.
These handles are visual only in this script.
❗ Do NOT use the vertical anchor handles to move the lines.
Moving the line manually does NOT change:
Anchor points
Channel geometry
Alert trigger levels
Alerts are calculated only from the script inputs, not from manual dragging.
Using the handles may cause a visual mismatch between the line position and alert behavior.
✅ Correct way to adjust the channel or line:
Use the script parameters:
Auto Anchors (bars lookback)
Vertical Offset
Angle control
This guarantees visual and alert consistency.
🧠 Why This Design
This indicator prioritizes:
Stability over repainting
Predictable alerts
Time-based structure instead of bar-index dependencies
It works consistently on:
Indices (NASDAQ, S&P, DAX…)
Metals (XAUUSD, XAGUSD)
Forex
Crypto
And on all timeframes:
M15 / M30 / H1 and higher
🎯 Typical Use Cases
Trend-following channels
Dynamic support & resistance
Mean reversion zones
Alert-based discretionary trading
Clean market structure visualization
📝 Notes
Manual dragging of lines is not supported by design.
Alerts are non-repainting once the anchors are defined.
This script does not read TradingView drawing tools (platform limitation).
IMPORTANT:
Do not manually drag the line anchor handles.
Manual dragging is visual only and does not affect alert levels.
All adjustments must be done using the indicator settings.
S.O.F.T – Stéphane Olivier Fabrice Trading
Built for clarity, precision, and real trading conditions.
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.