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.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.