OPEN-SOURCE SCRIPT
已更新 SOFT Canal BAS + alertes (extend future, offset)

SOFT Parallel Channel (Base Support) with Alerts
This indicator allows you to define a parallel price channel based on the lower support line, extended into the future, with clean and reliable touch alerts.
The channel is defined using two historical anchor points (date/time + price) on the support line.
The upper boundary is automatically calculated using a fixed channel height.
Key Features
📐 Channel based on the LOWER line (support)
➡️ Extended into the future using extend.right
🔔 Alerts on touch of:
Lower channel (support)
Upper channel (resistance)
🧼 Anti-spam alerts (only one alert per touch)
⏱️ Optional confirmation on bar close
🎚️ Vertical offset control (move the entire channel up or down using input arrows)
👀 Optional visual labels (SUP / RES), disabled by default
How It Works
Select two points on the lower channel line
(date/time + price for Point 1 and Point 2).
Set the channel height (in Nasdaq points).
Optionally adjust the vertical offset to fine-tune the channel position.
Create TradingView alerts on:
Touch Support
Touch Resistance
Recommended Settings (Nasdaq M15 / M30)
Channel height: 200 – 400 points
Touch tolerance: 3 – 10 points
Alerts: On close + one alert per touch (cleanest behavior)
Important Notes
The channel becomes visible once TradingView has loaded the historical bars containing both anchor points.
This script does not read manual drawing tools (TradingView limitation).
The channel is fully calculated and drawn by the script itself.
No repainting: the channel geometry is fixed once defined.
Use Cases
Trend channels
Dynamic support / resistance
Mean reversion trades
Alert-based discretionary trading
SOFT – Stéphane Olivier Fabrice Trading
Designed for clean charts, precise alerts, and practical trading use.
This indicator allows you to define a parallel price channel based on the lower support line, extended into the future, with clean and reliable touch alerts.
The channel is defined using two historical anchor points (date/time + price) on the support line.
The upper boundary is automatically calculated using a fixed channel height.
Key Features
📐 Channel based on the LOWER line (support)
➡️ Extended into the future using extend.right
🔔 Alerts on touch of:
Lower channel (support)
Upper channel (resistance)
🧼 Anti-spam alerts (only one alert per touch)
⏱️ Optional confirmation on bar close
🎚️ Vertical offset control (move the entire channel up or down using input arrows)
👀 Optional visual labels (SUP / RES), disabled by default
How It Works
Select two points on the lower channel line
(date/time + price for Point 1 and Point 2).
Set the channel height (in Nasdaq points).
Optionally adjust the vertical offset to fine-tune the channel position.
Create TradingView alerts on:
Touch Support
Touch Resistance
Recommended Settings (Nasdaq M15 / M30)
Channel height: 200 – 400 points
Touch tolerance: 3 – 10 points
Alerts: On close + one alert per touch (cleanest behavior)
Important Notes
The channel becomes visible once TradingView has loaded the historical bars containing both anchor points.
This script does not read manual drawing tools (TradingView limitation).
The channel is fully calculated and drawn by the script itself.
No repainting: the channel geometry is fixed once defined.
Use Cases
Trend channels
Dynamic support / resistance
Mean reversion trades
Alert-based discretionary trading
SOFT – Stéphane Olivier Fabrice Trading
Designed for clean charts, precise alerts, and practical trading use.
版本注释
SOFT Parallel Channel (Support) – Time-Based, Universal & AlertsThis indicator draws a parallel price channel based on a lower support line, using time-based anchors (date & time) instead of bar counting.
It is designed to be robust across all markets and timeframes, including instruments with gaps, sessions, or continuous trading.
Key Features
📐 Support-based parallel channel
🕒 Defined by two date/time + price anchor points
➡️ Extended into the future (right side of the chart)
🔔 Alerts on channel touch:
Lower band (support)
Upper band (resistance)
🧼 Anti-spam logic (one alert per touch)
⏱️ Optional confirmation on bar close
🎚️ Vertical offset control to move the entire channel up or down
🛡️ No dependency on bar_index detection (works even if history is partially loaded)
Why This Script Is Different
Unlike many channel scripts, this one:
Uses time-based geometry (bar_time), just like TradingView’s drawing tools
Does not rely on specific bars being present
Works reliably on:
Indices (NASDAQ, S&P, DAX…)
Metals (XAUUSD, XAGUSD)
Forex
Crypto
Works identically on M15 / M30 / H1 (and any timeframe)
No repainting: once the anchor points are set, the channel structure is fixed.
How to Use
Select two points on the LOWER channel line
(date/time + price).
Set the channel height (in instrument points).
Optionally adjust the vertical offset to fine-tune placement.
Create TradingView alerts on:
Support Touch
Resistance Touch
Recommended Settings
NASDAQ (M15)
Channel height: 150–300
XAUUSD (M15)
Channel height: 20–60
Tolerance: 1–2 ticks for clean alerts
Limitations
This script does not read manual drawings (TradingView limitation).
The channel must be defined through the script inputs.
Use Cases
Trend channels
Dynamic support & resistance
Mean reversion zones
Alert-based discretionary trading
Clean chart structure without clutter
SOFT – Stéphane Olivier Fabrice Trading
Built for precision, robustness, and real-world trading conditions.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。