PROTECTED SOURCE SCRIPT
SHALOM TRADING HUB – Bollinger Band System

SHALOM TRADING HUB – Bollinger Band System (Strategy)
All-in-one BB system with both Breakout and Mean-Reversion modes.
Automatic ENTRY / EXIT / STOP-LOSS, optional Mid-Band Exit, ATR or % risk, and built-in alerts. Backtest-ready.
What it does
Bollinger Bands: Basis = SMA(length); Upper/Lower = ±(mult × StDev).
Signals
Breakout mode
LONG → price crosses above Upper
SHORT → price crosses below Lower
Mean-Reversion mode
LONG → price re-enters above Lower
SHORT → price re-enters below Upper
Risk / Exits
ATR mode: SL = ATR × Mult, TP = SL × Risk:Reward
% mode: SL = %Stop, TP = %Take Profit
Optional Mid-Band (Basis) cross exit.
Visuals: BB lines + active Entry / SL / TP overlays + last-bar price labels.
Alerts: Breakout / Mean-Reversion signals and TP/SL hits.
Inputs (Settings)
Source, Length, Multiplier – BB calculation.
Signal Mode – Breakout or Mean Reversion.
Use ATR Stop/Target? – On = ATR; Off = %.
ATR Length, ATR Mult (SL), Risk:Reward (TP)
% Stop, % Take Profit (when ATR is Off)
Also exit on Mid-Band cross? – On/Off.
Alerts only on bar close? – Filters to confirmed bars.
Entry / Exit / Stop
Entry: Auto when the chosen signal condition triggers.
Stop-Loss: Placed from ATR or % settings.
Take-Profit: Set by R:R or % settings.
Mid-Band Exit (optional):
LONG → exit if close < Basis
SHORT → exit if close > Basis
Alerts (How-to)
Add the strategy to the chart → click Alerts (⚠️).
Condition: “SHALOM BB System” → choose:
BB Breakout LONG / SHORT
BB Mean-Reversion LONG / SHORT
Long TP Hit / Long SL Hit / Short TP Hit / Short SL Hit
Choose Once per bar or Once per bar close.
Backtest Tips
Match timeframe to your instrument.
Tune ATR/Mult, R:R, % to volatility.
Session filter (e.g., 09:20–15:20 IST) can be added easily in code.
Default pyramiding = 0; raise if you want multiple entries.
All-in-one BB system with both Breakout and Mean-Reversion modes.
Automatic ENTRY / EXIT / STOP-LOSS, optional Mid-Band Exit, ATR or % risk, and built-in alerts. Backtest-ready.
What it does
Bollinger Bands: Basis = SMA(length); Upper/Lower = ±(mult × StDev).
Signals
Breakout mode
LONG → price crosses above Upper
SHORT → price crosses below Lower
Mean-Reversion mode
LONG → price re-enters above Lower
SHORT → price re-enters below Upper
Risk / Exits
ATR mode: SL = ATR × Mult, TP = SL × Risk:Reward
% mode: SL = %Stop, TP = %Take Profit
Optional Mid-Band (Basis) cross exit.
Visuals: BB lines + active Entry / SL / TP overlays + last-bar price labels.
Alerts: Breakout / Mean-Reversion signals and TP/SL hits.
Inputs (Settings)
Source, Length, Multiplier – BB calculation.
Signal Mode – Breakout or Mean Reversion.
Use ATR Stop/Target? – On = ATR; Off = %.
ATR Length, ATR Mult (SL), Risk:Reward (TP)
% Stop, % Take Profit (when ATR is Off)
Also exit on Mid-Band cross? – On/Off.
Alerts only on bar close? – Filters to confirmed bars.
Entry / Exit / Stop
Entry: Auto when the chosen signal condition triggers.
Stop-Loss: Placed from ATR or % settings.
Take-Profit: Set by R:R or % settings.
Mid-Band Exit (optional):
LONG → exit if close < Basis
SHORT → exit if close > Basis
Alerts (How-to)
Add the strategy to the chart → click Alerts (⚠️).
Condition: “SHALOM BB System” → choose:
BB Breakout LONG / SHORT
BB Mean-Reversion LONG / SHORT
Long TP Hit / Long SL Hit / Short TP Hit / Short SL Hit
Choose Once per bar or Once per bar close.
Backtest Tips
Match timeframe to your instrument.
Tune ATR/Mult, R:R, % to volatility.
Session filter (e.g., 09:20–15:20 IST) can be added easily in code.
Default pyramiding = 0; raise if you want multiple entries.
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。