PROTECTED SOURCE SCRIPT
ValdesTradingBot BB %B / BBW (Long & Short)

ValdesTradingBot BB %B / BBW (Long & Short)
Overview
ValdesTradingBot BB %B / BBW (Long & Short) is a volatility and trend-based strategy that uses Bollinger Bands (%B and Band Width) to detect potential re-entry signals in both directions. It is designed for cryptocurrency trading but can be applied to other markets as well.
The strategy combines entry signals from band re-entries with optional filters for trend direction (EMA) and volatility (BBW). Once in a trade, it manages positions using multiple take-profit levels, trailing exits, and a configurable breakeven system.
How it works
Entry conditions (high-level):
Long signals: Price re-enters from below the Bollinger Band or %B crosses upward.
Short signals: Price re-enters from above the Bollinger Band or %B crosses downward.
Filters:
EMA filter: Optional, only takes longs above the EMA and shorts below.
BBW filter: Optional, requires a minimum band width and can require expansion.
Risk management & exits:
Stop Loss: ATR-based initial stop.
Breakeven: Optional; moves stop to entry once price has moved X% in favor (user-defined).
Take Profits: Up to 4 fixed TP levels, each with configurable percentages of the position size.
Trailing Stops: 2 trailing slices that lock in gains as price extends.
Inputs & settings
Bollinger Band Length & Multiplier – defines bands.
EMA Trend Filter – on/off + EMA length.
BBW Filter – on/off, min width, require rising.
ATR Length & Multiplier – defines initial stop distance.
TP1–TP4 % & Allocation – user can set levels and how much to close at each.
TP5–TP6 Trailing % & Allocation – trailing stops and allocations.
Breakeven Trigger % – percent move required to shift stop to entry.
Cooldown bars – blocks instant re-entries after closing a trade.
Recommended usage
Best timeframe: 30-minute chart.
Markets: Crypto pairs (BTC, ETH, majors); adaptable to Forex or stocks.
Starting settings:
EMA filter ON with EMA 200.
BB Multiplier: 1.9–2.2.
ATR Stop x: 5–8.
Breakeven Trigger: 1–2%.
BBW filter OFF (enable if too many signals).
Alerts & automation
The script includes alert conditions for:
Enter Long
Enter Short
All Exited / Flat
Alerts are provided with JSON payloads so they can be used in automation platforms (e.g., via webhooks). Configure on “Any alert() function call” or per-condition basis.
Notes & disclaimer
This is a strategy for research and educational purposes only.
Results vary by market, timeframe, and settings — always forward-test before live trading.
This does not guarantee profits and is not financial advice.
Past performance is not indicative of future results.
Overview
ValdesTradingBot BB %B / BBW (Long & Short) is a volatility and trend-based strategy that uses Bollinger Bands (%B and Band Width) to detect potential re-entry signals in both directions. It is designed for cryptocurrency trading but can be applied to other markets as well.
The strategy combines entry signals from band re-entries with optional filters for trend direction (EMA) and volatility (BBW). Once in a trade, it manages positions using multiple take-profit levels, trailing exits, and a configurable breakeven system.
How it works
Entry conditions (high-level):
Long signals: Price re-enters from below the Bollinger Band or %B crosses upward.
Short signals: Price re-enters from above the Bollinger Band or %B crosses downward.
Filters:
EMA filter: Optional, only takes longs above the EMA and shorts below.
BBW filter: Optional, requires a minimum band width and can require expansion.
Risk management & exits:
Stop Loss: ATR-based initial stop.
Breakeven: Optional; moves stop to entry once price has moved X% in favor (user-defined).
Take Profits: Up to 4 fixed TP levels, each with configurable percentages of the position size.
Trailing Stops: 2 trailing slices that lock in gains as price extends.
Inputs & settings
Bollinger Band Length & Multiplier – defines bands.
EMA Trend Filter – on/off + EMA length.
BBW Filter – on/off, min width, require rising.
ATR Length & Multiplier – defines initial stop distance.
TP1–TP4 % & Allocation – user can set levels and how much to close at each.
TP5–TP6 Trailing % & Allocation – trailing stops and allocations.
Breakeven Trigger % – percent move required to shift stop to entry.
Cooldown bars – blocks instant re-entries after closing a trade.
Recommended usage
Best timeframe: 30-minute chart.
Markets: Crypto pairs (BTC, ETH, majors); adaptable to Forex or stocks.
Starting settings:
EMA filter ON with EMA 200.
BB Multiplier: 1.9–2.2.
ATR Stop x: 5–8.
Breakeven Trigger: 1–2%.
BBW filter OFF (enable if too many signals).
Alerts & automation
The script includes alert conditions for:
Enter Long
Enter Short
All Exited / Flat
Alerts are provided with JSON payloads so they can be used in automation platforms (e.g., via webhooks). Configure on “Any alert() function call” or per-condition basis.
Notes & disclaimer
This is a strategy for research and educational purposes only.
Results vary by market, timeframe, and settings — always forward-test before live trading.
This does not guarantee profits and is not financial advice.
Past performance is not indicative of future results.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.