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.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que la republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como asesoramiento o recomendaciones financieras, de inversión, de trading o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que la republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como asesoramiento o recomendaciones financieras, de inversión, de trading o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.